﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Globalization;
using System.Data;
using System.Data.Common;
using System.Xml;
using System.Text;
using LibHuman;

namespace Human
{
	/// <summary>
	/// Summary description for frmDaoTaoSua.
	/// </summary>
	public class frmDaoTao : System.Windows.Forms.Form
	{
        private string TSo = "", m_user = "", sql = "", CHUYENMON = "", HOCVAN = "", NGOAINGU1 = "", NGOAINGU2="",
                NGOAINGU3 = "", NGOAINGU4 = "", VITINH="";
		bool chon=false;

        private AccessData mDB = new AccessData();
        Language lan = new Language();
		DataSet ds =new DataSet();
        int flag = 0;
		private DataSet ds1=new DataSet();
		private bool bClear=true,admin=false;
        private string v_manv, v_ho, v_bophan,ten_nd="";
		private System.Windows.Forms.Label label45;
		private System.Windows.Forms.Label label33;
		private System.Windows.Forms.CheckBox ckbQTDTCoQuan;
		private System.Windows.Forms.TextBox txtQLNNDaHoc;
		private System.Windows.Forms.Label label34;
		private System.Windows.Forms.TextBox txtHe;
		private System.Windows.Forms.ComboBox cboTrinhDoNN1;
		private System.Windows.Forms.Label label41;
		private System.Windows.Forms.ComboBox cboTDViTinh;
		private System.Windows.Forms.Label label39;
		private System.Windows.Forms.ComboBox cboHocVanDT;
		private System.Windows.Forms.Label label44;
		private System.Windows.Forms.Label label42;
		private System.Windows.Forms.ComboBox cboHeTD2;
		private System.Windows.Forms.Label label43;
		private System.Windows.Forms.ComboBox cboTrinhDoNN2;
		private System.Windows.Forms.ComboBox cboHeTD1;
		private System.Windows.Forms.Label label40;
		private System.Windows.Forms.ComboBox cboHocHam;
		private System.Windows.Forms.ComboBox cboTrinhDoDT;
		private System.Windows.Forms.ComboBox cboHe;
		private System.Windows.Forms.Label label36;
		private System.Windows.Forms.Label label37;
		private System.Windows.Forms.Label label38;
		private System.Windows.Forms.ComboBox cboChuyenMonTD2;
		private System.Windows.Forms.ComboBox cboChuyenMonTD1;
		private System.Windows.Forms.ComboBox cboChuyenMonDT;
		private System.Windows.Forms.Label label35;
		private System.Windows.Forms.ComboBox cboHocVanNN2;
		private System.Windows.Forms.Label label30;
		private System.Windows.Forms.Label label32;
		private System.Windows.Forms.Label label31;
		private System.Windows.Forms.ComboBox cboHocVanNN1;
        private System.Windows.Forms.GroupBox groupDTCQ;
		private System.Windows.Forms.Label label162;
		private System.Windows.Forms.TextBox txtST_CQ;
		private System.Windows.Forms.Label label161;
		private System.Windows.Forms.TextBox txtSPT_CQ;
		private System.Windows.Forms.Label label160;
		private System.Windows.Forms.TextBox txtDTT_CQ;
		private System.Windows.Forms.Label label159;
		private System.Windows.Forms.Label label158;
		private System.Windows.Forms.ContextMenu dgrDaoTaocontextMenu;
		private System.Windows.Forms.MenuItem menuItem1;
		private System.Windows.Forms.MenuItem menuItem2;
		private System.Windows.Forms.ContextMenu dgrDaoTaoCQcontextMenu;
		private System.Windows.Forms.MenuItem menuItem3;
		private System.Windows.Forms.MenuItem menuItem4;
		private System.Windows.Forms.ToolTip toolTip1;
		private System.ComponentModel.IContainer components;

		string hv,cm,nn1;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.ComboBox cboTDQLNN;
		private System.Windows.Forms.ContextMenu ctBDNV;
		private System.Windows.Forms.MenuItem mnuThemBDNV;
        private System.Windows.Forms.MenuItem mnuHuyBDNV;
        private System.Windows.Forms.TextBox txt_tg_dt;
		private System.Windows.Forms.DataGrid dgrQTDTCoQuan;
		private System.Windows.Forms.DataGrid dgrDaoTao;
		private System.Windows.Forms.GroupBox groupDT;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.Label label12;
		private System.Windows.Forms.Label label13;
		private System.Windows.Forms.Label label14;
		private System.Windows.Forms.Label label15;
        private System.Windows.Forms.TextBox txtThang;
		private System.Windows.Forms.Label label16;
        private System.Windows.Forms.Panel panel1;
		private System.Windows.Forms.Panel panel2;
		private PinkieControls.ButtonXP btnBoquaCQ;
		private PinkieControls.ButtonXP btnHuyCQ;
		private PinkieControls.ButtonXP btnThemCQ;
		private PinkieControls.ButtonXP btnLuuCQ;
		private PinkieControls.ButtonXP btnKetthucCQ;
		private PinkieControls.ButtonXP btnxoathanhvienCQ;
		private System.Windows.Forms.ComboBox cbo_ndt_dt;
		private System.Windows.Forms.ComboBox cbo_bangcap_dt;
		private System.Windows.Forms.ComboBox cbo_hedt_dt;
		private System.Windows.Forms.ComboBox cboNDT_CQ;
		private System.Windows.Forms.Label label27;
		private System.Windows.Forms.TextBox txtTSo;
         Label lblTenPhongCT;
         Label lblHoTenNVCT;
        private Label label29;
        private Label label28;
        private Label lblMasoNVCT;
        private ToolStrip toolStrip3;
        private ToolStripLabel lblHD;
        private MaskedTextBox txt_tungay_dt;
        private MaskedTextBox txt_denngay_dt;
        private MaskedTextBox txtNTT_CQ;
        private MaskedTextBox txtTungay;
        private Button btnKetthuc;
        private Button btnxoathanhvien;
        private Button btnHuy;
        private Button btnBoqua;
        private Button btnLuu;
        private Button btnThem;
        private Button butEdit;
        private TextBox txtid;
        private ComboBox cbo_donvitg;
        private Label label4;
        private ComboBox cbodonvicq;
        private Label label5;
        private TextBox txtid_cq;
        private TextBox ghichu;
        private Label label3;
        private TextBox txt_noidaotao_dt;
        private TextBox txt_ghichu_dt;
        private TextBox txt_dennam;
        private Label label6;
        private Label label9;
        private TextBox txt_tunam;
        private Label label17;
        private TextBox txt_denthang;
        private Label label18;
        private TextBox txt_tuthang;
        private Button butEdit_cq;
	
		public frmDaoTao(string manv,string hoten,string madv,bool m_admin,string tennd)
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
            lan.Read_Language_to_Xml(this.Name.ToString(), this);
            lan.Changelanguage_to_English(this.Name.ToString(), this);
            m_user = mDB.user;
			lblMasoNVCT.Text=manv;
			lblHoTenNVCT.Text=hoten;
			lblTenPhongCT.Text=madv;
            admin = m_admin;
            ten_nd = tennd;
			if (Screen.PrimaryScreen.WorkingArea.Width>=1000)//
			{
				
				this.WindowState=FormWindowState.Normal;
				this.MaximizeBox=false;
			}
			else
			{
				
				this.WindowState=FormWindowState.Maximized;
			}
			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmDaoTao));
            this.label45 = new System.Windows.Forms.Label();
            this.dgrDaoTaocontextMenu = new System.Windows.Forms.ContextMenu();
            this.menuItem1 = new System.Windows.Forms.MenuItem();
            this.menuItem2 = new System.Windows.Forms.MenuItem();
            this.label33 = new System.Windows.Forms.Label();
            this.ckbQTDTCoQuan = new System.Windows.Forms.CheckBox();
            this.txtQLNNDaHoc = new System.Windows.Forms.TextBox();
            this.label34 = new System.Windows.Forms.Label();
            this.txtHe = new System.Windows.Forms.TextBox();
            this.cboTrinhDoNN1 = new System.Windows.Forms.ComboBox();
            this.label41 = new System.Windows.Forms.Label();
            this.cboTDViTinh = new System.Windows.Forms.ComboBox();
            this.label39 = new System.Windows.Forms.Label();
            this.cboHocVanDT = new System.Windows.Forms.ComboBox();
            this.label44 = new System.Windows.Forms.Label();
            this.label42 = new System.Windows.Forms.Label();
            this.cboHeTD2 = new System.Windows.Forms.ComboBox();
            this.label43 = new System.Windows.Forms.Label();
            this.cboTrinhDoNN2 = new System.Windows.Forms.ComboBox();
            this.cboHeTD1 = new System.Windows.Forms.ComboBox();
            this.label40 = new System.Windows.Forms.Label();
            this.cboHocHam = new System.Windows.Forms.ComboBox();
            this.cboTrinhDoDT = new System.Windows.Forms.ComboBox();
            this.cboHe = new System.Windows.Forms.ComboBox();
            this.label36 = new System.Windows.Forms.Label();
            this.label37 = new System.Windows.Forms.Label();
            this.label38 = new System.Windows.Forms.Label();
            this.cboChuyenMonTD2 = new System.Windows.Forms.ComboBox();
            this.cboChuyenMonTD1 = new System.Windows.Forms.ComboBox();
            this.cboChuyenMonDT = new System.Windows.Forms.ComboBox();
            this.label35 = new System.Windows.Forms.Label();
            this.cboHocVanNN2 = new System.Windows.Forms.ComboBox();
            this.label30 = new System.Windows.Forms.Label();
            this.label32 = new System.Windows.Forms.Label();
            this.label31 = new System.Windows.Forms.Label();
            this.cboHocVanNN1 = new System.Windows.Forms.ComboBox();
            this.dgrDaoTaoCQcontextMenu = new System.Windows.Forms.ContextMenu();
            this.menuItem3 = new System.Windows.Forms.MenuItem();
            this.menuItem4 = new System.Windows.Forms.MenuItem();
            this.groupDTCQ = new System.Windows.Forms.GroupBox();
            this.cbodonvicq = new System.Windows.Forms.ComboBox();
            this.txtTungay = new System.Windows.Forms.MaskedTextBox();
            this.txtNTT_CQ = new System.Windows.Forms.MaskedTextBox();
            this.label16 = new System.Windows.Forms.Label();
            this.txtThang = new System.Windows.Forms.TextBox();
            this.label15 = new System.Windows.Forms.Label();
            this.label162 = new System.Windows.Forms.Label();
            this.txtST_CQ = new System.Windows.Forms.TextBox();
            this.label161 = new System.Windows.Forms.Label();
            this.txtSPT_CQ = new System.Windows.Forms.TextBox();
            this.label160 = new System.Windows.Forms.Label();
            this.txtDTT_CQ = new System.Windows.Forms.TextBox();
            this.label4 = new System.Windows.Forms.Label();
            this.label159 = new System.Windows.Forms.Label();
            this.label158 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.ghichu = new System.Windows.Forms.TextBox();
            this.cboNDT_CQ = new System.Windows.Forms.ComboBox();
            this.ctBDNV = new System.Windows.Forms.ContextMenu();
            this.mnuThemBDNV = new System.Windows.Forms.MenuItem();
            this.mnuHuyBDNV = new System.Windows.Forms.MenuItem();
            this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
            this.butEdit = new System.Windows.Forms.Button();
            this.btnKetthuc = new System.Windows.Forms.Button();
            this.btnxoathanhvien = new System.Windows.Forms.Button();
            this.btnHuy = new System.Windows.Forms.Button();
            this.btnBoqua = new System.Windows.Forms.Button();
            this.btnLuu = new System.Windows.Forms.Button();
            this.btnThem = new System.Windows.Forms.Button();
            this.label2 = new System.Windows.Forms.Label();
            this.cboTDQLNN = new System.Windows.Forms.ComboBox();
            this.dgrQTDTCoQuan = new System.Windows.Forms.DataGrid();
            this.dgrDaoTao = new System.Windows.Forms.DataGrid();
            this.groupDT = new System.Windows.Forms.GroupBox();
            this.label17 = new System.Windows.Forms.Label();
            this.txt_denthang = new System.Windows.Forms.TextBox();
            this.label18 = new System.Windows.Forms.Label();
            this.txt_tuthang = new System.Windows.Forms.TextBox();
            this.txt_dennam = new System.Windows.Forms.TextBox();
            this.label6 = new System.Windows.Forms.Label();
            this.label9 = new System.Windows.Forms.Label();
            this.txt_tunam = new System.Windows.Forms.TextBox();
            this.txt_ghichu_dt = new System.Windows.Forms.TextBox();
            this.txt_noidaotao_dt = new System.Windows.Forms.TextBox();
            this.cbo_donvitg = new System.Windows.Forms.ComboBox();
            this.txt_denngay_dt = new System.Windows.Forms.MaskedTextBox();
            this.txt_tungay_dt = new System.Windows.Forms.MaskedTextBox();
            this.cbo_hedt_dt = new System.Windows.Forms.ComboBox();
            this.cbo_bangcap_dt = new System.Windows.Forms.ComboBox();
            this.cbo_ndt_dt = new System.Windows.Forms.ComboBox();
            this.label7 = new System.Windows.Forms.Label();
            this.txt_tg_dt = new System.Windows.Forms.TextBox();
            this.label8 = new System.Windows.Forms.Label();
            this.label10 = new System.Windows.Forms.Label();
            this.label11 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.label12 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.label13 = new System.Windows.Forms.Label();
            this.label14 = new System.Windows.Forms.Label();
            this.panel1 = new System.Windows.Forms.Panel();
            this.panel2 = new System.Windows.Forms.Panel();
            this.butEdit_cq = new System.Windows.Forms.Button();
            this.btnBoquaCQ = new PinkieControls.ButtonXP();
            this.btnHuyCQ = new PinkieControls.ButtonXP();
            this.btnThemCQ = new PinkieControls.ButtonXP();
            this.btnLuuCQ = new PinkieControls.ButtonXP();
            this.btnKetthucCQ = new PinkieControls.ButtonXP();
            this.btnxoathanhvienCQ = new PinkieControls.ButtonXP();
            this.label27 = new System.Windows.Forms.Label();
            this.txtTSo = new System.Windows.Forms.TextBox();
            this.lblTenPhongCT = new System.Windows.Forms.Label();
            this.lblHoTenNVCT = new System.Windows.Forms.Label();
            this.label29 = new System.Windows.Forms.Label();
            this.label28 = new System.Windows.Forms.Label();
            this.lblMasoNVCT = new System.Windows.Forms.Label();
            this.toolStrip3 = new System.Windows.Forms.ToolStrip();
            this.lblHD = new System.Windows.Forms.ToolStripLabel();
            this.txtid = new System.Windows.Forms.TextBox();
            this.txtid_cq = new System.Windows.Forms.TextBox();
            this.groupDTCQ.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgrQTDTCoQuan)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dgrDaoTao)).BeginInit();
            this.groupDT.SuspendLayout();
            this.panel1.SuspendLayout();
            this.panel2.SuspendLayout();
            this.toolStrip3.SuspendLayout();
            this.SuspendLayout();
            // 
            // label45
            // 
            this.label45.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label45.ForeColor = System.Drawing.Color.DarkBlue;
            this.label45.Location = new System.Drawing.Point(744, 63);
            this.label45.Name = "label45";
            this.label45.Size = new System.Drawing.Size(34, 13);
            this.label45.TabIndex = 91;
            this.label45.Text = "tháng";
            this.label45.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // dgrDaoTaocontextMenu
            // 
            this.dgrDaoTaocontextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.menuItem1,
            this.menuItem2});
            // 
            // menuItem1
            // 
            this.menuItem1.Index = 0;
            this.menuItem1.Text = "Thêm";
            this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
            // 
            // menuItem2
            // 
            this.menuItem2.Index = 1;
            this.menuItem2.Text = "Hủy";
            this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
            // 
            // label33
            // 
            this.label33.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label33.ForeColor = System.Drawing.Color.DarkBlue;
            this.label33.Location = new System.Drawing.Point(179, 86);
            this.label33.Name = "label33";
            this.label33.Size = new System.Drawing.Size(50, 13);
            this.label33.TabIndex = 92;
            this.label33.Text = "Trình độ ";
            this.label33.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // ckbQTDTCoQuan
            // 
            this.ckbQTDTCoQuan.ForeColor = System.Drawing.Color.MediumBlue;
            this.ckbQTDTCoQuan.Location = new System.Drawing.Point(15, 449);
            this.ckbQTDTCoQuan.Name = "ckbQTDTCoQuan";
            this.ckbQTDTCoQuan.Size = new System.Drawing.Size(192, 24);
            this.ckbQTDTCoQuan.TabIndex = 18;
            this.ckbQTDTCoQuan.Text = "Quá trình đào tạo tại cơ quan";
            this.ckbQTDTCoQuan.CheckStateChanged += new System.EventHandler(this.ckbQTDTCoQuan_CheckStateChanged);
            // 
            // txtQLNNDaHoc
            // 
            this.txtQLNNDaHoc.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtQLNNDaHoc.ForeColor = System.Drawing.Color.Navy;
            this.txtQLNNDaHoc.Location = new System.Drawing.Point(627, 130);
            this.txtQLNNDaHoc.MaxLength = 4;
            this.txtQLNNDaHoc.Name = "txtQLNNDaHoc";
            this.txtQLNNDaHoc.Size = new System.Drawing.Size(80, 20);
            this.txtQLNNDaHoc.TabIndex = 16;
            this.txtQLNNDaHoc.Validated += new System.EventHandler(this.txtQLNNDaHoc_Validated);
            this.txtQLNNDaHoc.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtQLNNDaHoc_KeyDown);
            this.txtQLNNDaHoc.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtQLNNDaHoc_KeyPress);
            // 
            // label34
            // 
            this.label34.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label34.ForeColor = System.Drawing.Color.DarkBlue;
            this.label34.Location = new System.Drawing.Point(179, 112);
            this.label34.Name = "label34";
            this.label34.Size = new System.Drawing.Size(50, 13);
            this.label34.TabIndex = 93;
            this.label34.Text = "Trình độ ";
            this.label34.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // txtHe
            // 
            this.txtHe.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtHe.ForeColor = System.Drawing.Color.Navy;
            this.txtHe.Location = new System.Drawing.Point(707, 60);
            this.txtHe.MaxLength = 3;
            this.txtHe.Name = "txtHe";
            this.txtHe.Size = new System.Drawing.Size(32, 20);
            this.txtHe.TabIndex = 4;
            this.txtHe.Text = "0";
            this.txtHe.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            this.txtHe.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtHe_KeyDown);
            this.txtHe.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtHe_KeyPress);
            this.txtHe.Validating += new System.ComponentModel.CancelEventHandler(this.txtHe_Validating);
            // 
            // cboTrinhDoNN1
            // 
            this.cboTrinhDoNN1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboTrinhDoNN1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboTrinhDoNN1.ForeColor = System.Drawing.Color.Navy;
            this.cboTrinhDoNN1.ItemHeight = 13;
            this.cboTrinhDoNN1.Location = new System.Drawing.Point(429, 83);
            this.cboTrinhDoNN1.Name = "cboTrinhDoNN1";
            this.cboTrinhDoNN1.Size = new System.Drawing.Size(118, 21);
            this.cboTrinhDoNN1.TabIndex = 7;
            this.cboTrinhDoNN1.Validated += new System.EventHandler(this.cboTrinhDoNN1_Validated);
            this.cboTrinhDoNN1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboTrinhDoNN1_KeyDown);
            // 
            // label41
            // 
            this.label41.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label41.ForeColor = System.Drawing.Color.DarkBlue;
            this.label41.Location = new System.Drawing.Point(592, 59);
            this.label41.Name = "label41";
            this.label41.Size = new System.Drawing.Size(32, 24);
            this.label41.TabIndex = 85;
            this.label41.Text = "Hệ ";
            this.label41.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // cboTDViTinh
            // 
            this.cboTDViTinh.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboTDViTinh.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboTDViTinh.ForeColor = System.Drawing.Color.Navy;
            this.cboTDViTinh.Location = new System.Drawing.Point(229, 132);
            this.cboTDViTinh.Name = "cboTDViTinh";
            this.cboTDViTinh.Size = new System.Drawing.Size(145, 21);
            this.cboTDViTinh.TabIndex = 14;
            this.cboTDViTinh.Validated += new System.EventHandler(this.cboTDViTinh_Validated);
            this.cboTDViTinh.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboTDViTinh_KeyDown);
            // 
            // label39
            // 
            this.label39.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label39.ForeColor = System.Drawing.Color.DarkBlue;
            this.label39.Location = new System.Drawing.Point(574, 87);
            this.label39.Name = "label39";
            this.label39.Size = new System.Drawing.Size(50, 13);
            this.label39.TabIndex = 89;
            this.label39.Text = "Trình độ ";
            this.label39.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // cboHocVanDT
            // 
            this.cboHocVanDT.BackColor = System.Drawing.Color.White;
            this.cboHocVanDT.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboHocVanDT.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboHocVanDT.ForeColor = System.Drawing.Color.Navy;
            this.cboHocVanDT.Location = new System.Drawing.Point(60, 60);
            this.cboHocVanDT.Name = "cboHocVanDT";
            this.cboHocVanDT.Size = new System.Drawing.Size(80, 21);
            this.cboHocVanDT.TabIndex = 0;
            this.cboHocVanDT.Validated += new System.EventHandler(this.cboHocVanDT_Validated);
            this.cboHocVanDT.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboHocVanDT_KeyDown);
            // 
            // label44
            // 
            this.label44.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label44.ForeColor = System.Drawing.Color.DarkBlue;
            this.label44.Location = new System.Drawing.Point(3, 135);
            this.label44.Name = "label44";
            this.label44.Size = new System.Drawing.Size(53, 13);
            this.label44.TabIndex = 86;
            this.label44.Text = "Học hàm ";
            this.label44.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label42
            // 
            this.label42.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label42.ForeColor = System.Drawing.Color.DarkBlue;
            this.label42.Location = new System.Drawing.Point(146, 137);
            this.label42.Name = "label42";
            this.label42.Size = new System.Drawing.Size(83, 13);
            this.label42.TabIndex = 88;
            this.label42.Text = "Trình độ vi tính ";
            this.label42.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // cboHeTD2
            // 
            this.cboHeTD2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboHeTD2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboHeTD2.ForeColor = System.Drawing.Color.Navy;
            this.cboHeTD2.Location = new System.Drawing.Point(627, 107);
            this.cboHeTD2.Name = "cboHeTD2";
            this.cboHeTD2.Size = new System.Drawing.Size(147, 21);
            this.cboHeTD2.TabIndex = 12;
            this.cboHeTD2.Validated += new System.EventHandler(this.cboHeTD2_Validated);
            this.cboHeTD2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboHeTD2_KeyDown);
            // 
            // label43
            // 
            this.label43.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label43.ForeColor = System.Drawing.Color.DarkBlue;
            this.label43.Location = new System.Drawing.Point(538, 134);
            this.label43.Name = "label43";
            this.label43.Size = new System.Drawing.Size(86, 13);
            this.label43.TabIndex = 87;
            this.label43.Text = "Học QLNN năm ";
            this.label43.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // cboTrinhDoNN2
            // 
            this.cboTrinhDoNN2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboTrinhDoNN2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboTrinhDoNN2.ForeColor = System.Drawing.Color.Navy;
            this.cboTrinhDoNN2.Location = new System.Drawing.Point(429, 107);
            this.cboTrinhDoNN2.Name = "cboTrinhDoNN2";
            this.cboTrinhDoNN2.Size = new System.Drawing.Size(118, 21);
            this.cboTrinhDoNN2.TabIndex = 11;
            this.cboTrinhDoNN2.Validated += new System.EventHandler(this.cboTrinhDoNN2_Validated);
            this.cboTrinhDoNN2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboTrinhDoNN2_KeyDown);
            // 
            // cboHeTD1
            // 
            this.cboHeTD1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboHeTD1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboHeTD1.ForeColor = System.Drawing.Color.Navy;
            this.cboHeTD1.Location = new System.Drawing.Point(627, 83);
            this.cboHeTD1.Name = "cboHeTD1";
            this.cboHeTD1.Size = new System.Drawing.Size(147, 21);
            this.cboHeTD1.TabIndex = 8;
            this.cboHeTD1.Validated += new System.EventHandler(this.cboHeTD1_Validated);
            this.cboHeTD1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboHeTD1_KeyDown);
            // 
            // label40
            // 
            this.label40.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label40.ForeColor = System.Drawing.Color.DarkBlue;
            this.label40.Location = new System.Drawing.Point(574, 109);
            this.label40.Name = "label40";
            this.label40.Size = new System.Drawing.Size(50, 13);
            this.label40.TabIndex = 90;
            this.label40.Text = "Trình độ ";
            this.label40.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // cboHocHam
            // 
            this.cboHocHam.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboHocHam.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboHocHam.ForeColor = System.Drawing.Color.Navy;
            this.cboHocHam.Location = new System.Drawing.Point(60, 131);
            this.cboHocHam.Name = "cboHocHam";
            this.cboHocHam.Size = new System.Drawing.Size(80, 21);
            this.cboHocHam.TabIndex = 13;
            this.cboHocHam.Validating += new System.ComponentModel.CancelEventHandler(this.cboHocHam_Validating);
            this.cboHocHam.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboHocHam_KeyDown);
            // 
            // cboTrinhDoDT
            // 
            this.cboTrinhDoDT.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboTrinhDoDT.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboTrinhDoDT.ForeColor = System.Drawing.Color.Navy;
            this.cboTrinhDoDT.Location = new System.Drawing.Point(429, 59);
            this.cboTrinhDoDT.Name = "cboTrinhDoDT";
            this.cboTrinhDoDT.Size = new System.Drawing.Size(118, 21);
            this.cboTrinhDoDT.TabIndex = 2;
            this.cboTrinhDoDT.Validated += new System.EventHandler(this.cboTrinhDoDT_Validated);
            this.cboTrinhDoDT.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboTrinhDoDT_KeyDown);
            // 
            // cboHe
            // 
            this.cboHe.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboHe.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboHe.ForeColor = System.Drawing.Color.Navy;
            this.cboHe.Location = new System.Drawing.Point(627, 60);
            this.cboHe.Name = "cboHe";
            this.cboHe.Size = new System.Drawing.Size(80, 21);
            this.cboHe.TabIndex = 3;
            this.cboHe.Validated += new System.EventHandler(this.cboHe_Validated);
            this.cboHe.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboHe_KeyDown);
            // 
            // label36
            // 
            this.label36.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label36.ForeColor = System.Drawing.Color.DarkBlue;
            this.label36.Location = new System.Drawing.Point(381, 109);
            this.label36.Name = "label36";
            this.label36.Size = new System.Drawing.Size(50, 13);
            this.label36.TabIndex = 84;
            this.label36.Text = "Ng. Ngữ ";
            this.label36.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label37
            // 
            this.label37.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label37.ForeColor = System.Drawing.Color.DarkBlue;
            this.label37.Location = new System.Drawing.Point(381, 85);
            this.label37.Name = "label37";
            this.label37.Size = new System.Drawing.Size(50, 13);
            this.label37.TabIndex = 83;
            this.label37.Text = "Ng. Ngữ ";
            this.label37.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label38
            // 
            this.label38.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label38.ForeColor = System.Drawing.Color.DarkBlue;
            this.label38.Location = new System.Drawing.Point(382, 63);
            this.label38.Name = "label38";
            this.label38.Size = new System.Drawing.Size(50, 13);
            this.label38.TabIndex = 82;
            this.label38.Text = "Trình độ ";
            this.label38.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // cboChuyenMonTD2
            // 
            this.cboChuyenMonTD2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboChuyenMonTD2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboChuyenMonTD2.ForeColor = System.Drawing.Color.Navy;
            this.cboChuyenMonTD2.Location = new System.Drawing.Point(229, 108);
            this.cboChuyenMonTD2.Name = "cboChuyenMonTD2";
            this.cboChuyenMonTD2.Size = new System.Drawing.Size(144, 21);
            this.cboChuyenMonTD2.TabIndex = 10;
            this.cboChuyenMonTD2.Validated += new System.EventHandler(this.cboChuyenMonTD2_Validated);
            this.cboChuyenMonTD2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboChuyenMonTD2_KeyDown);
            // 
            // cboChuyenMonTD1
            // 
            this.cboChuyenMonTD1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboChuyenMonTD1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboChuyenMonTD1.ForeColor = System.Drawing.Color.Navy;
            this.cboChuyenMonTD1.Location = new System.Drawing.Point(229, 84);
            this.cboChuyenMonTD1.Name = "cboChuyenMonTD1";
            this.cboChuyenMonTD1.Size = new System.Drawing.Size(144, 21);
            this.cboChuyenMonTD1.TabIndex = 6;
            this.cboChuyenMonTD1.Validated += new System.EventHandler(this.cboChuyenMonTD1_Validated);
            this.cboChuyenMonTD1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboChuyenMonTD1_KeyDown);
            // 
            // cboChuyenMonDT
            // 
            this.cboChuyenMonDT.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboChuyenMonDT.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboChuyenMonDT.ForeColor = System.Drawing.Color.Navy;
            this.cboChuyenMonDT.Location = new System.Drawing.Point(229, 60);
            this.cboChuyenMonDT.Name = "cboChuyenMonDT";
            this.cboChuyenMonDT.Size = new System.Drawing.Size(145, 21);
            this.cboChuyenMonDT.TabIndex = 1;
            this.cboChuyenMonDT.Validated += new System.EventHandler(this.cboChuyenMonDT_Validated);
            this.cboChuyenMonDT.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboChuyenMonDT_KeyDown);
            // 
            // label35
            // 
            this.label35.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label35.ForeColor = System.Drawing.Color.DarkBlue;
            this.label35.Location = new System.Drawing.Point(160, 62);
            this.label35.Name = "label35";
            this.label35.Size = new System.Drawing.Size(69, 13);
            this.label35.TabIndex = 81;
            this.label35.Text = "Chuyên môn ";
            this.label35.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // cboHocVanNN2
            // 
            this.cboHocVanNN2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboHocVanNN2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboHocVanNN2.ForeColor = System.Drawing.Color.Navy;
            this.cboHocVanNN2.Location = new System.Drawing.Point(60, 108);
            this.cboHocVanNN2.Name = "cboHocVanNN2";
            this.cboHocVanNN2.Size = new System.Drawing.Size(80, 21);
            this.cboHocVanNN2.TabIndex = 9;
            this.cboHocVanNN2.Validated += new System.EventHandler(this.cboHocVanNN2_Validated);
            this.cboHocVanNN2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboHocVanNN2_KeyDown);
            // 
            // label30
            // 
            this.label30.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label30.ForeColor = System.Drawing.Color.DarkBlue;
            this.label30.Location = new System.Drawing.Point(7, 63);
            this.label30.Name = "label30";
            this.label30.Size = new System.Drawing.Size(51, 13);
            this.label30.TabIndex = 61;
            this.label30.Text = "Học vấn ";
            this.label30.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label32
            // 
            this.label32.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label32.ForeColor = System.Drawing.Color.DarkBlue;
            this.label32.Location = new System.Drawing.Point(7, 112);
            this.label32.Name = "label32";
            this.label32.Size = new System.Drawing.Size(50, 13);
            this.label32.TabIndex = 64;
            this.label32.Text = "Ng. Ngữ ";
            this.label32.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label31
            // 
            this.label31.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label31.ForeColor = System.Drawing.Color.DarkBlue;
            this.label31.Location = new System.Drawing.Point(7, 87);
            this.label31.Name = "label31";
            this.label31.Size = new System.Drawing.Size(50, 13);
            this.label31.TabIndex = 62;
            this.label31.Text = "Ng. Ngữ ";
            this.label31.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // cboHocVanNN1
            // 
            this.cboHocVanNN1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboHocVanNN1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboHocVanNN1.ForeColor = System.Drawing.Color.Navy;
            this.cboHocVanNN1.Location = new System.Drawing.Point(60, 84);
            this.cboHocVanNN1.Name = "cboHocVanNN1";
            this.cboHocVanNN1.Size = new System.Drawing.Size(80, 21);
            this.cboHocVanNN1.TabIndex = 5;
            this.cboHocVanNN1.Validated += new System.EventHandler(this.cboHocVanNN1_Validated);
            this.cboHocVanNN1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboHocVanNN1_KeyDown);
            // 
            // dgrDaoTaoCQcontextMenu
            // 
            this.dgrDaoTaoCQcontextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.menuItem3,
            this.menuItem4});
            // 
            // menuItem3
            // 
            this.menuItem3.Index = 0;
            this.menuItem3.Text = "Thêm";
            this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
            // 
            // menuItem4
            // 
            this.menuItem4.Index = 1;
            this.menuItem4.Text = "Hủy";
            this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
            // 
            // groupDTCQ
            // 
            this.groupDTCQ.BackColor = System.Drawing.SystemColors.Control;
            this.groupDTCQ.Controls.Add(this.cbodonvicq);
            this.groupDTCQ.Controls.Add(this.txtTungay);
            this.groupDTCQ.Controls.Add(this.txtNTT_CQ);
            this.groupDTCQ.Controls.Add(this.label16);
            this.groupDTCQ.Controls.Add(this.txtThang);
            this.groupDTCQ.Controls.Add(this.label15);
            this.groupDTCQ.Controls.Add(this.label162);
            this.groupDTCQ.Controls.Add(this.txtST_CQ);
            this.groupDTCQ.Controls.Add(this.label161);
            this.groupDTCQ.Controls.Add(this.txtSPT_CQ);
            this.groupDTCQ.Controls.Add(this.label160);
            this.groupDTCQ.Controls.Add(this.txtDTT_CQ);
            this.groupDTCQ.Controls.Add(this.label4);
            this.groupDTCQ.Controls.Add(this.label159);
            this.groupDTCQ.Controls.Add(this.label158);
            this.groupDTCQ.Controls.Add(this.label1);
            this.groupDTCQ.Controls.Add(this.ghichu);
            this.groupDTCQ.Controls.Add(this.cboNDT_CQ);
            this.groupDTCQ.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.groupDTCQ.ForeColor = System.Drawing.Color.Blue;
            this.groupDTCQ.Location = new System.Drawing.Point(7, 333);
            this.groupDTCQ.Name = "groupDTCQ";
            this.groupDTCQ.Size = new System.Drawing.Size(777, 72);
            this.groupDTCQ.TabIndex = 17;
            this.groupDTCQ.TabStop = false;
            this.groupDTCQ.Text = "Quá trình đào tạo tại cơ quan";
            this.groupDTCQ.Visible = false;
            // 
            // cbodonvicq
            // 
            this.cbodonvicq.FormattingEnabled = true;
            this.cbodonvicq.Items.AddRange(new object[] {
            "Ngày",
            "Tháng",
            "Năm"});
            this.cbodonvicq.Location = new System.Drawing.Point(547, 41);
            this.cbodonvicq.Name = "cbodonvicq";
            this.cbodonvicq.Size = new System.Drawing.Size(56, 21);
            this.cbodonvicq.TabIndex = 6;
            this.cbodonvicq.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cbodonvicq_KeyDown);
            // 
            // txtTungay
            // 
            this.txtTungay.Location = new System.Drawing.Point(608, 41);
            this.txtTungay.Mask = "00/00/0000";
            this.txtTungay.Name = "txtTungay";
            this.txtTungay.Size = new System.Drawing.Size(78, 20);
            this.txtTungay.TabIndex = 7;
            this.txtTungay.ValidatingType = typeof(System.DateTime);
            this.txtTungay.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtTungay_KeyDown);
            this.txtTungay.Validated += new System.EventHandler(this.txtTungay_Validated);
            // 
            // txtNTT_CQ
            // 
            this.txtNTT_CQ.Location = new System.Drawing.Point(216, 41);
            this.txtNTT_CQ.Mask = "00/00/0000";
            this.txtNTT_CQ.Name = "txtNTT_CQ";
            this.txtNTT_CQ.Size = new System.Drawing.Size(80, 20);
            this.txtNTT_CQ.TabIndex = 2;
            this.txtNTT_CQ.ValidatingType = typeof(System.DateTime);
            this.txtNTT_CQ.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtNTT_CQ_KeyDown);
            this.txtNTT_CQ.Validated += new System.EventHandler(this.txtNTT_CQ_Validated);
            // 
            // label16
            // 
            this.label16.AutoSize = true;
            this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label16.ForeColor = System.Drawing.Color.DarkBlue;
            this.label16.Location = new System.Drawing.Point(214, 24);
            this.label16.Name = "label16";
            this.label16.Size = new System.Drawing.Size(70, 13);
            this.label16.TabIndex = 63;
            this.label16.Text = "Ngày T.Toán";
            this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // txtThang
            // 
            this.txtThang.BackColor = System.Drawing.Color.White;
            this.txtThang.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtThang.ForeColor = System.Drawing.Color.DarkBlue;
            this.txtThang.Location = new System.Drawing.Point(503, 41);
            this.txtThang.Name = "txtThang";
            this.txtThang.Size = new System.Drawing.Size(37, 21);
            this.txtThang.TabIndex = 5;
            this.txtThang.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtThang_KeyDown);
            this.txtThang.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtThang_KeyPress);
            // 
            // label15
            // 
            this.label15.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label15.ForeColor = System.Drawing.Color.DarkBlue;
            this.label15.Location = new System.Drawing.Point(500, 23);
            this.label15.Name = "label15";
            this.label15.Size = new System.Drawing.Size(43, 16);
            this.label15.TabIndex = 60;
            this.label15.Text = "Tháng";
            // 
            // label162
            // 
            this.label162.AutoSize = true;
            this.label162.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label162.ForeColor = System.Drawing.Color.DarkBlue;
            this.label162.Location = new System.Drawing.Point(605, 22);
            this.label162.Name = "label162";
            this.label162.Size = new System.Drawing.Size(46, 13);
            this.label162.TabIndex = 57;
            this.label162.Text = "Từ ngày";
            this.label162.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // txtST_CQ
            // 
            this.txtST_CQ.BackColor = System.Drawing.Color.White;
            this.txtST_CQ.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtST_CQ.ForeColor = System.Drawing.Color.Navy;
            this.txtST_CQ.Location = new System.Drawing.Point(385, 41);
            this.txtST_CQ.MaxLength = 8;
            this.txtST_CQ.Name = "txtST_CQ";
            this.txtST_CQ.Size = new System.Drawing.Size(112, 21);
            this.txtST_CQ.TabIndex = 4;
            this.txtST_CQ.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtST_CQ.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtST_CQ_KeyDown);
            // 
            // label161
            // 
            this.label161.AutoSize = true;
            this.label161.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label161.ForeColor = System.Drawing.Color.DarkBlue;
            this.label161.Location = new System.Drawing.Point(383, 25);
            this.label161.Name = "label161";
            this.label161.Size = new System.Drawing.Size(40, 13);
            this.label161.TabIndex = 55;
            this.label161.Text = "Số tiền";
            this.label161.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // txtSPT_CQ
            // 
            this.txtSPT_CQ.BackColor = System.Drawing.Color.White;
            this.txtSPT_CQ.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtSPT_CQ.ForeColor = System.Drawing.Color.Navy;
            this.txtSPT_CQ.Location = new System.Drawing.Point(302, 41);
            this.txtSPT_CQ.MaxLength = 20;
            this.txtSPT_CQ.Name = "txtSPT_CQ";
            this.txtSPT_CQ.Size = new System.Drawing.Size(80, 21);
            this.txtSPT_CQ.TabIndex = 3;
            this.txtSPT_CQ.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtSPT_CQ_KeyDown);
            // 
            // label160
            // 
            this.label160.AutoSize = true;
            this.label160.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label160.ForeColor = System.Drawing.Color.DarkBlue;
            this.label160.Location = new System.Drawing.Point(299, 23);
            this.label160.Name = "label160";
            this.label160.Size = new System.Drawing.Size(67, 13);
            this.label160.TabIndex = 53;
            this.label160.Text = "Số phiếu thu";
            this.label160.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // txtDTT_CQ
            // 
            this.txtDTT_CQ.BackColor = System.Drawing.Color.White;
            this.txtDTT_CQ.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtDTT_CQ.ForeColor = System.Drawing.Color.Navy;
            this.txtDTT_CQ.Location = new System.Drawing.Point(150, 41);
            this.txtDTT_CQ.MaxLength = 10;
            this.txtDTT_CQ.Name = "txtDTT_CQ";
            this.txtDTT_CQ.Size = new System.Drawing.Size(61, 21);
            this.txtDTT_CQ.TabIndex = 1;
            this.txtDTT_CQ.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtDTT_CQ_KeyDown);
            this.txtDTT_CQ.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtDTT_CQ_KeyPress);
            // 
            // label4
            // 
            this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label4.ForeColor = System.Drawing.Color.DarkBlue;
            this.label4.Location = new System.Drawing.Point(544, 23);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(48, 16);
            this.label4.TabIndex = 4;
            this.label4.Text = "Đơn vị";
            // 
            // label159
            // 
            this.label159.AutoSize = true;
            this.label159.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label159.ForeColor = System.Drawing.Color.DarkBlue;
            this.label159.Location = new System.Drawing.Point(149, 23);
            this.label159.Name = "label159";
            this.label159.Size = new System.Drawing.Size(62, 13);
            this.label159.TabIndex = 2;
            this.label159.Text = "Đợt T.Toán";
            this.label159.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label158
            // 
            this.label158.AutoSize = true;
            this.label158.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label158.ForeColor = System.Drawing.Color.DarkBlue;
            this.label158.Location = new System.Drawing.Point(15, 22);
            this.label158.Name = "label158";
            this.label158.Size = new System.Drawing.Size(79, 13);
            this.label158.TabIndex = 0;
            this.label158.Text = "Ngành đào tạo";
            this.label158.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label1.ForeColor = System.Drawing.Color.DarkBlue;
            this.label1.Location = new System.Drawing.Point(689, 22);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(44, 13);
            this.label1.TabIndex = 55;
            this.label1.Text = "Ghi chú";
            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // ghichu
            // 
            this.ghichu.BackColor = System.Drawing.Color.White;
            this.ghichu.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ghichu.ForeColor = System.Drawing.Color.Navy;
            this.ghichu.Location = new System.Drawing.Point(692, 41);
            this.ghichu.MaxLength = 50;
            this.ghichu.Name = "ghichu";
            this.ghichu.Size = new System.Drawing.Size(79, 21);
            this.ghichu.TabIndex = 8;
            this.ghichu.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
            // 
            // cboNDT_CQ
            // 
            this.cboNDT_CQ.BackColor = System.Drawing.Color.White;
            this.cboNDT_CQ.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboNDT_CQ.Enabled = false;
            this.cboNDT_CQ.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboNDT_CQ.ForeColor = System.Drawing.Color.Navy;
            this.cboNDT_CQ.Location = new System.Drawing.Point(15, 40);
            this.cboNDT_CQ.Name = "cboNDT_CQ";
            this.cboNDT_CQ.Size = new System.Drawing.Size(126, 22);
            this.cboNDT_CQ.TabIndex = 0;
            this.cboNDT_CQ.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboNDT_CQ_KeyDown);
            // 
            // ctBDNV
            // 
            this.ctBDNV.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.mnuThemBDNV,
            this.mnuHuyBDNV});
            // 
            // mnuThemBDNV
            // 
            this.mnuThemBDNV.Index = 0;
            this.mnuThemBDNV.Text = "Thêm";
            // 
            // mnuHuyBDNV
            // 
            this.mnuHuyBDNV.Index = 1;
            this.mnuHuyBDNV.Text = "Huỷ";
            // 
            // butEdit
            // 
            this.butEdit.BackColor = System.Drawing.SystemColors.Control;
            this.butEdit.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.butEdit.ForeColor = System.Drawing.Color.DarkBlue;
            this.butEdit.Image = ((System.Drawing.Image)(resources.GetObject("butEdit.Image")));
            this.butEdit.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.butEdit.Location = new System.Drawing.Point(74, 5);
            this.butEdit.Name = "butEdit";
            this.butEdit.Size = new System.Drawing.Size(65, 28);
            this.butEdit.TabIndex = 223;
            this.butEdit.Text = "  &Sửa";
            this.toolTip1.SetToolTip(this.butEdit, "Alt+S");
            this.butEdit.UseVisualStyleBackColor = true;
            this.butEdit.Click += new System.EventHandler(this.butEdit_Click);
            // 
            // btnKetthuc
            // 
            this.btnKetthuc.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnKetthuc.ForeColor = System.Drawing.Color.DarkBlue;
            this.btnKetthuc.Image = global::Human.Properties.Resources.close_r;
            this.btnKetthuc.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.btnKetthuc.Location = new System.Drawing.Point(438, 4);
            this.btnKetthuc.Name = "btnKetthuc";
            this.btnKetthuc.Size = new System.Drawing.Size(75, 28);
            this.btnKetthuc.TabIndex = 105;
            this.btnKetthuc.Text = "&Kết thúc";
            this.btnKetthuc.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.toolTip1.SetToolTip(this.btnKetthuc, "Alt+K");
            this.btnKetthuc.UseVisualStyleBackColor = true;
            this.btnKetthuc.Click += new System.EventHandler(this.btnKetthuc_Click);
            // 
            // btnxoathanhvien
            // 
            this.btnxoathanhvien.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnxoathanhvien.ForeColor = System.Drawing.Color.DarkBlue;
            this.btnxoathanhvien.Image = global::Human.Properties.Resources.delete_enabled;
            this.btnxoathanhvien.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.btnxoathanhvien.Location = new System.Drawing.Point(296, 4);
            this.btnxoathanhvien.Name = "btnxoathanhvien";
            this.btnxoathanhvien.Size = new System.Drawing.Size(65, 28);
            this.btnxoathanhvien.TabIndex = 222;
            this.btnxoathanhvien.Text = "   &Xóa";
            this.toolTip1.SetToolTip(this.btnxoathanhvien, "Alt+X");
            this.btnxoathanhvien.UseVisualStyleBackColor = true;
            this.btnxoathanhvien.Click += new System.EventHandler(this.btnxoathanhvien_Click);
            // 
            // btnHuy
            // 
            this.btnHuy.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnHuy.ForeColor = System.Drawing.Color.DarkBlue;
            this.btnHuy.Image = ((System.Drawing.Image)(resources.GetObject("btnHuy.Image")));
            this.btnHuy.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.btnHuy.Location = new System.Drawing.Point(367, 5);
            this.btnHuy.Name = "btnHuy";
            this.btnHuy.Size = new System.Drawing.Size(65, 28);
            this.btnHuy.TabIndex = 221;
            this.btnHuy.Text = "  &Hủy";
            this.toolTip1.SetToolTip(this.btnHuy, "Alt+H");
            this.btnHuy.UseVisualStyleBackColor = true;
            this.btnHuy.Click += new System.EventHandler(this.btnHuy_Click);
            // 
            // btnBoqua
            // 
            this.btnBoqua.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnBoqua.ForeColor = System.Drawing.Color.DarkBlue;
            this.btnBoqua.Image = ((System.Drawing.Image)(resources.GetObject("btnBoqua.Image")));
            this.btnBoqua.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.btnBoqua.Location = new System.Drawing.Point(216, 5);
            this.btnBoqua.Name = "btnBoqua";
            this.btnBoqua.Size = new System.Drawing.Size(74, 28);
            this.btnBoqua.TabIndex = 220;
            this.btnBoqua.Text = "   &Bỏ qua";
            this.toolTip1.SetToolTip(this.btnBoqua, "Alt+B");
            this.btnBoqua.UseVisualStyleBackColor = true;
            this.btnBoqua.Click += new System.EventHandler(this.btnBoqua_Click);
            // 
            // btnLuu
            // 
            this.btnLuu.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnLuu.ForeColor = System.Drawing.Color.DarkBlue;
            this.btnLuu.Image = ((System.Drawing.Image)(resources.GetObject("btnLuu.Image")));
            this.btnLuu.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.btnLuu.Location = new System.Drawing.Point(145, 5);
            this.btnLuu.Name = "btnLuu";
            this.btnLuu.Size = new System.Drawing.Size(65, 28);
            this.btnLuu.TabIndex = 219;
            this.btnLuu.Text = "  &Lưu";
            this.toolTip1.SetToolTip(this.btnLuu, "Alt+L");
            this.btnLuu.UseVisualStyleBackColor = true;
            this.btnLuu.Click += new System.EventHandler(this.btnLuu_Click);
            // 
            // btnThem
            // 
            this.btnThem.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnThem.ForeColor = System.Drawing.Color.DarkBlue;
            this.btnThem.Image = ((System.Drawing.Image)(resources.GetObject("btnThem.Image")));
            this.btnThem.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.btnThem.Location = new System.Drawing.Point(3, 5);
            this.btnThem.Name = "btnThem";
            this.btnThem.Size = new System.Drawing.Size(65, 28);
            this.btnThem.TabIndex = 218;
            this.btnThem.Text = "&Thêm";
            this.btnThem.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.toolTip1.SetToolTip(this.btnThem, "Alt+T");
            this.btnThem.UseVisualStyleBackColor = true;
            this.btnThem.Click += new System.EventHandler(this.btnThem_Click);
            // 
            // label2
            // 
            this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label2.ForeColor = System.Drawing.Color.DarkBlue;
            this.label2.Location = new System.Drawing.Point(377, 133);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(37, 13);
            this.label2.TabIndex = 87;
            this.label2.Text = "QLNN";
            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // cboTDQLNN
            // 
            this.cboTDQLNN.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboTDQLNN.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboTDQLNN.ForeColor = System.Drawing.Color.Navy;
            this.cboTDQLNN.Location = new System.Drawing.Point(429, 130);
            this.cboTDQLNN.Name = "cboTDQLNN";
            this.cboTDQLNN.Size = new System.Drawing.Size(103, 21);
            this.cboTDQLNN.TabIndex = 15;
            this.cboTDQLNN.Validated += new System.EventHandler(this.cboTDQLNN_Validated);
            this.cboTDQLNN.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboTDQLNN_KeyDown);
            // 
            // dgrQTDTCoQuan
            // 
            this.dgrQTDTCoQuan.AlternatingBackColor = System.Drawing.Color.Lavender;
            this.dgrQTDTCoQuan.BackColor = System.Drawing.Color.WhiteSmoke;
            this.dgrQTDTCoQuan.BackgroundColor = System.Drawing.SystemColors.Control;
            this.dgrQTDTCoQuan.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.dgrQTDTCoQuan.CaptionBackColor = System.Drawing.Color.LightSteelBlue;
            this.dgrQTDTCoQuan.CaptionForeColor = System.Drawing.Color.MidnightBlue;
            this.dgrQTDTCoQuan.CaptionText = "Quá trình đào tạo tại cơ quan";
            this.dgrQTDTCoQuan.CaptionVisible = false;
            this.dgrQTDTCoQuan.DataMember = "";
            this.dgrQTDTCoQuan.FlatMode = true;
            this.dgrQTDTCoQuan.Font = new System.Drawing.Font("Tahoma", 8F);
            this.dgrQTDTCoQuan.ForeColor = System.Drawing.Color.MidnightBlue;
            this.dgrQTDTCoQuan.GridLineColor = System.Drawing.Color.Gainsboro;
            this.dgrQTDTCoQuan.GridLineStyle = System.Windows.Forms.DataGridLineStyle.None;
            this.dgrQTDTCoQuan.HeaderBackColor = System.Drawing.Color.MidnightBlue;
            this.dgrQTDTCoQuan.HeaderFont = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold);
            this.dgrQTDTCoQuan.HeaderForeColor = System.Drawing.Color.WhiteSmoke;
            this.dgrQTDTCoQuan.LinkColor = System.Drawing.Color.Teal;
            this.dgrQTDTCoQuan.Location = new System.Drawing.Point(8, 159);
            this.dgrQTDTCoQuan.Name = "dgrQTDTCoQuan";
            this.dgrQTDTCoQuan.ParentRowsBackColor = System.Drawing.Color.Gainsboro;
            this.dgrQTDTCoQuan.ParentRowsForeColor = System.Drawing.Color.MidnightBlue;
            this.dgrQTDTCoQuan.RowHeaderWidth = 10;
            this.dgrQTDTCoQuan.SelectionBackColor = System.Drawing.Color.CadetBlue;
            this.dgrQTDTCoQuan.SelectionForeColor = System.Drawing.Color.WhiteSmoke;
            this.dgrQTDTCoQuan.Size = new System.Drawing.Size(768, 168);
            this.dgrQTDTCoQuan.TabIndex = 104;
            this.dgrQTDTCoQuan.CurrentCellChanged += new System.EventHandler(this.dgrQTDTCoQuan_CurrentCellChanged);
            // 
            // dgrDaoTao
            // 
            this.dgrDaoTao.AlternatingBackColor = System.Drawing.Color.Lavender;
            this.dgrDaoTao.BackColor = System.Drawing.Color.WhiteSmoke;
            this.dgrDaoTao.BackgroundColor = System.Drawing.SystemColors.Control;
            this.dgrDaoTao.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.dgrDaoTao.CaptionBackColor = System.Drawing.Color.LightSteelBlue;
            this.dgrDaoTao.CaptionForeColor = System.Drawing.Color.MidnightBlue;
            this.dgrDaoTao.CaptionText = "Quá trình đào tạo";
            this.dgrDaoTao.CaptionVisible = false;
            this.dgrDaoTao.DataMember = "";
            this.dgrDaoTao.FlatMode = true;
            this.dgrDaoTao.Font = new System.Drawing.Font("Tahoma", 8F);
            this.dgrDaoTao.ForeColor = System.Drawing.Color.MidnightBlue;
            this.dgrDaoTao.GridLineColor = System.Drawing.Color.Gainsboro;
            this.dgrDaoTao.GridLineStyle = System.Windows.Forms.DataGridLineStyle.None;
            this.dgrDaoTao.HeaderBackColor = System.Drawing.Color.MidnightBlue;
            this.dgrDaoTao.HeaderFont = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.dgrDaoTao.HeaderForeColor = System.Drawing.Color.WhiteSmoke;
            this.dgrDaoTao.LinkColor = System.Drawing.Color.Teal;
            this.dgrDaoTao.Location = new System.Drawing.Point(8, 159);
            this.dgrDaoTao.Name = "dgrDaoTao";
            this.dgrDaoTao.ParentRowsBackColor = System.Drawing.Color.Gainsboro;
            this.dgrDaoTao.ParentRowsForeColor = System.Drawing.Color.MidnightBlue;
            this.dgrDaoTao.RowHeaderWidth = 10;
            this.dgrDaoTao.SelectionBackColor = System.Drawing.Color.CadetBlue;
            this.dgrDaoTao.SelectionForeColor = System.Drawing.Color.WhiteSmoke;
            this.dgrDaoTao.Size = new System.Drawing.Size(791, 168);
            this.dgrDaoTao.TabIndex = 105;
            this.dgrDaoTao.CurrentCellChanged += new System.EventHandler(this.dgrDaoTao_CurrentCellChanged);
            // 
            // groupDT
            // 
            this.groupDT.Controls.Add(this.label17);
            this.groupDT.Controls.Add(this.txt_denthang);
            this.groupDT.Controls.Add(this.label18);
            this.groupDT.Controls.Add(this.txt_tuthang);
            this.groupDT.Controls.Add(this.txt_dennam);
            this.groupDT.Controls.Add(this.label6);
            this.groupDT.Controls.Add(this.label9);
            this.groupDT.Controls.Add(this.txt_tunam);
            this.groupDT.Controls.Add(this.txt_ghichu_dt);
            this.groupDT.Controls.Add(this.txt_noidaotao_dt);
            this.groupDT.Controls.Add(this.cbo_donvitg);
            this.groupDT.Controls.Add(this.txt_denngay_dt);
            this.groupDT.Controls.Add(this.txt_tungay_dt);
            this.groupDT.Controls.Add(this.cbo_hedt_dt);
            this.groupDT.Controls.Add(this.cbo_bangcap_dt);
            this.groupDT.Controls.Add(this.cbo_ndt_dt);
            this.groupDT.Controls.Add(this.label7);
            this.groupDT.Controls.Add(this.txt_tg_dt);
            this.groupDT.Controls.Add(this.label8);
            this.groupDT.Controls.Add(this.label10);
            this.groupDT.Controls.Add(this.label11);
            this.groupDT.Controls.Add(this.label5);
            this.groupDT.Controls.Add(this.label12);
            this.groupDT.Controls.Add(this.label3);
            this.groupDT.Controls.Add(this.label13);
            this.groupDT.Controls.Add(this.label14);
            this.groupDT.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.groupDT.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(160)))));
            this.groupDT.Location = new System.Drawing.Point(6, 333);
            this.groupDT.Name = "groupDT";
            this.groupDT.Size = new System.Drawing.Size(793, 101);
            this.groupDT.TabIndex = 17;
            this.groupDT.TabStop = false;
            this.groupDT.Text = "Quá trình đào tạo";
            // 
            // label17
            // 
            this.label17.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label17.ForeColor = System.Drawing.Color.DarkBlue;
            this.label17.Location = new System.Drawing.Point(525, 50);
            this.label17.Name = "label17";
            this.label17.Size = new System.Drawing.Size(57, 13);
            this.label17.TabIndex = 122;
            this.label17.Text = "Đến tháng";
            this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // txt_denthang
            // 
            this.txt_denthang.Enabled = false;
            this.txt_denthang.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txt_denthang.Location = new System.Drawing.Point(586, 46);
            this.txt_denthang.MaxLength = 2;
            this.txt_denthang.Name = "txt_denthang";
            this.txt_denthang.Size = new System.Drawing.Size(42, 20);
            this.txt_denthang.TabIndex = 9;
            this.txt_denthang.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txt_denthang_KeyDown);
            this.txt_denthang.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txt_denthang_KeyPress);
            // 
            // label18
            // 
            this.label18.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label18.ForeColor = System.Drawing.Color.DarkBlue;
            this.label18.Location = new System.Drawing.Point(145, 50);
            this.label18.Name = "label18";
            this.label18.Size = new System.Drawing.Size(50, 13);
            this.label18.TabIndex = 121;
            this.label18.Text = "Từ tháng";
            this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // txt_tuthang
            // 
            this.txt_tuthang.Enabled = false;
            this.txt_tuthang.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txt_tuthang.Location = new System.Drawing.Point(201, 46);
            this.txt_tuthang.MaxLength = 2;
            this.txt_tuthang.Name = "txt_tuthang";
            this.txt_tuthang.Size = new System.Drawing.Size(42, 20);
            this.txt_tuthang.TabIndex = 6;
            this.txt_tuthang.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txt_tuthang_KeyDown);
            this.txt_tuthang.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txt_tuthang_KeyPress);
            // 
            // txt_dennam
            // 
            this.txt_dennam.Enabled = false;
            this.txt_dennam.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txt_dennam.Location = new System.Drawing.Point(692, 46);
            this.txt_dennam.MaxLength = 4;
            this.txt_dennam.Name = "txt_dennam";
            this.txt_dennam.Size = new System.Drawing.Size(41, 20);
            this.txt_dennam.TabIndex = 10;
            this.txt_dennam.Validated += new System.EventHandler(this.txt_dennam_Validated);
            this.txt_dennam.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txt_dennam_KeyDown);
            this.txt_dennam.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txt_dennam_KeyPress);
            // 
            // label6
            // 
            this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label6.ForeColor = System.Drawing.Color.DarkBlue;
            this.label6.Location = new System.Drawing.Point(245, 50);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(46, 13);
            this.label6.TabIndex = 118;
            this.label6.Text = "Từ năm ";
            this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label9
            // 
            this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label9.ForeColor = System.Drawing.Color.DarkBlue;
            this.label9.Location = new System.Drawing.Point(634, 50);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(56, 13);
            this.label9.TabIndex = 117;
            this.label9.Text = " Đến năm ";
            this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // txt_tunam
            // 
            this.txt_tunam.Enabled = false;
            this.txt_tunam.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txt_tunam.Location = new System.Drawing.Point(291, 46);
            this.txt_tunam.MaxLength = 4;
            this.txt_tunam.Name = "txt_tunam";
            this.txt_tunam.Size = new System.Drawing.Size(44, 20);
            this.txt_tunam.TabIndex = 7;
            this.txt_tunam.Validated += new System.EventHandler(this.txt_tunam_Validated);
            this.txt_tunam.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txt_tunam_KeyDown);
            this.txt_tunam.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txt_tunam_KeyPress);
            // 
            // txt_ghichu_dt
            // 
            this.txt_ghichu_dt.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txt_ghichu_dt.Location = new System.Drawing.Point(449, 72);
            this.txt_ghichu_dt.Name = "txt_ghichu_dt";
            this.txt_ghichu_dt.Size = new System.Drawing.Size(201, 20);
            this.txt_ghichu_dt.TabIndex = 12;
            this.txt_ghichu_dt.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txt_ghichu_dt_KeyDown);
            // 
            // txt_noidaotao_dt
            // 
            this.txt_noidaotao_dt.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txt_noidaotao_dt.Location = new System.Drawing.Point(87, 72);
            this.txt_noidaotao_dt.Name = "txt_noidaotao_dt";
            this.txt_noidaotao_dt.Size = new System.Drawing.Size(262, 20);
            this.txt_noidaotao_dt.TabIndex = 11;
            this.txt_noidaotao_dt.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txt_noidaotao_dt_KeyDown);
            // 
            // cbo_donvitg
            // 
            this.cbo_donvitg.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cbo_donvitg.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cbo_donvitg.FormattingEnabled = true;
            this.cbo_donvitg.Items.AddRange(new object[] {
            "Ngày",
            "Tháng",
            "Năm"});
            this.cbo_donvitg.Location = new System.Drawing.Point(710, 22);
            this.cbo_donvitg.Name = "cbo_donvitg";
            this.cbo_donvitg.Size = new System.Drawing.Size(58, 21);
            this.cbo_donvitg.TabIndex = 4;
            this.cbo_donvitg.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cbodonvi_KeyDown);
            // 
            // txt_denngay_dt
            // 
            this.txt_denngay_dt.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txt_denngay_dt.Location = new System.Drawing.Point(416, 47);
            this.txt_denngay_dt.Mask = "00/00/0000";
            this.txt_denngay_dt.Name = "txt_denngay_dt";
            this.txt_denngay_dt.Size = new System.Drawing.Size(99, 20);
            this.txt_denngay_dt.TabIndex = 8;
            this.txt_denngay_dt.ValidatingType = typeof(System.DateTime);
            this.txt_denngay_dt.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtDN_DT_KeyDown);
            this.txt_denngay_dt.Validated += new System.EventHandler(this.txtDN_DT_Validated);
            this.txt_denngay_dt.TextChanged += new System.EventHandler(this.txt_denngay_dt_TextChanged);
            // 
            // txt_tungay_dt
            // 
            this.txt_tungay_dt.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txt_tungay_dt.Location = new System.Drawing.Point(54, 47);
            this.txt_tungay_dt.Mask = "00/00/0000";
            this.txt_tungay_dt.Name = "txt_tungay_dt";
            this.txt_tungay_dt.Size = new System.Drawing.Size(88, 20);
            this.txt_tungay_dt.TabIndex = 5;
            this.txt_tungay_dt.ValidatingType = typeof(System.DateTime);
            this.txt_tungay_dt.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtTN_DT_KeyDown);
            this.txt_tungay_dt.Validated += new System.EventHandler(this.txtTN_DT_Validated);
            this.txt_tungay_dt.TextChanged += new System.EventHandler(this.txt_tungay_dt_TextChanged);
            // 
            // cbo_hedt_dt
            // 
            this.cbo_hedt_dt.BackColor = System.Drawing.Color.White;
            this.cbo_hedt_dt.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cbo_hedt_dt.Enabled = false;
            this.cbo_hedt_dt.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cbo_hedt_dt.ForeColor = System.Drawing.Color.Navy;
            this.cbo_hedt_dt.Location = new System.Drawing.Point(449, 22);
            this.cbo_hedt_dt.Name = "cbo_hedt_dt";
            this.cbo_hedt_dt.Size = new System.Drawing.Size(99, 22);
            this.cbo_hedt_dt.TabIndex = 2;
            this.cbo_hedt_dt.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboH_DT_KeyDown);
            // 
            // cbo_bangcap_dt
            // 
            this.cbo_bangcap_dt.BackColor = System.Drawing.Color.White;
            this.cbo_bangcap_dt.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cbo_bangcap_dt.Enabled = false;
            this.cbo_bangcap_dt.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cbo_bangcap_dt.ForeColor = System.Drawing.Color.Navy;
            this.cbo_bangcap_dt.Location = new System.Drawing.Point(305, 22);
            this.cbo_bangcap_dt.Name = "cbo_bangcap_dt";
            this.cbo_bangcap_dt.Size = new System.Drawing.Size(113, 22);
            this.cbo_bangcap_dt.TabIndex = 1;
            this.cbo_bangcap_dt.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboBC_DT_KeyDown);
            // 
            // cbo_ndt_dt
            // 
            this.cbo_ndt_dt.BackColor = System.Drawing.Color.White;
            this.cbo_ndt_dt.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cbo_ndt_dt.Enabled = false;
            this.cbo_ndt_dt.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cbo_ndt_dt.ForeColor = System.Drawing.Color.Navy;
            this.cbo_ndt_dt.Location = new System.Drawing.Point(87, 21);
            this.cbo_ndt_dt.Name = "cbo_ndt_dt";
            this.cbo_ndt_dt.Size = new System.Drawing.Size(156, 22);
            this.cbo_ndt_dt.TabIndex = 0;
            this.cbo_ndt_dt.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cboNDT_DT_KeyDown);
            // 
            // label7
            // 
            this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label7.ForeColor = System.Drawing.Color.DarkBlue;
            this.label7.Location = new System.Drawing.Point(5, 25);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(79, 13);
            this.label7.TabIndex = 10;
            this.label7.Text = "Ngành đào tạo";
            this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // txt_tg_dt
            // 
            this.txt_tg_dt.BackColor = System.Drawing.Color.White;
            this.txt_tg_dt.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txt_tg_dt.ForeColor = System.Drawing.Color.DarkBlue;
            this.txt_tg_dt.Location = new System.Drawing.Point(609, 22);
            this.txt_tg_dt.Multiline = true;
            this.txt_tg_dt.Name = "txt_tg_dt";
            this.txt_tg_dt.Size = new System.Drawing.Size(41, 22);
            this.txt_tg_dt.TabIndex = 3;
            this.txt_tg_dt.Validated += new System.EventHandler(this.txt_tg_dt_Validated);
            this.txt_tg_dt.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtT_DT_KeyDown);
            this.txt_tg_dt.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtT_DT_KeyPress);
            // 
            // label8
            // 
            this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label8.ForeColor = System.Drawing.Color.DarkBlue;
            this.label8.Location = new System.Drawing.Point(249, 24);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(53, 13);
            this.label8.TabIndex = 11;
            this.label8.Text = "Bằng cấp";
            this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label10
            // 
            this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label10.ForeColor = System.Drawing.Color.DarkBlue;
            this.label10.Location = new System.Drawing.Point(424, 24);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(21, 13);
            this.label10.TabIndex = 12;
            this.label10.Text = "Hệ";
            this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label11
            // 
            this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label11.ForeColor = System.Drawing.Color.DarkBlue;
            this.label11.Location = new System.Drawing.Point(554, 25);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(51, 13);
            this.label11.TabIndex = 13;
            this.label11.Text = "Thời gian";
            this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label5
            // 
            this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label5.ForeColor = System.Drawing.Color.DarkBlue;
            this.label5.Location = new System.Drawing.Point(656, 24);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(48, 16);
            this.label5.TabIndex = 14;
            this.label5.Text = "Đơn vị";
            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label12
            // 
            this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label12.ForeColor = System.Drawing.Color.DarkBlue;
            this.label12.Location = new System.Drawing.Point(5, 50);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(46, 13);
            this.label12.TabIndex = 15;
            this.label12.Text = "Từ ngày";
            this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label3
            // 
            this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label3.ForeColor = System.Drawing.Color.DarkBlue;
            this.label3.Location = new System.Drawing.Point(21, 75);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(63, 13);
            this.label3.TabIndex = 17;
            this.label3.Text = "Nơi đào tạo";
            this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label13
            // 
            this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label13.ForeColor = System.Drawing.Color.DarkBlue;
            this.label13.Location = new System.Drawing.Point(359, 50);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(53, 13);
            this.label13.TabIndex = 16;
            this.label13.Text = "Đến ngày";
            this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label14
            // 
            this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label14.ForeColor = System.Drawing.Color.DarkBlue;
            this.label14.Location = new System.Drawing.Point(401, 75);
            this.label14.Name = "label14";
            this.label14.Size = new System.Drawing.Size(44, 13);
            this.label14.TabIndex = 18;
            this.label14.Text = "Ghi chú";
            this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // panel1
            // 
            this.panel1.Controls.Add(this.butEdit);
            this.panel1.Controls.Add(this.btnKetthuc);
            this.panel1.Controls.Add(this.btnxoathanhvien);
            this.panel1.Controls.Add(this.btnHuy);
            this.panel1.Controls.Add(this.btnBoqua);
            this.panel1.Controls.Add(this.btnLuu);
            this.panel1.Controls.Add(this.btnThem);
            this.panel1.Location = new System.Drawing.Point(169, 474);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(524, 35);
            this.panel1.TabIndex = 19;
            // 
            // panel2
            // 
            this.panel2.Controls.Add(this.butEdit_cq);
            this.panel2.Controls.Add(this.btnBoquaCQ);
            this.panel2.Controls.Add(this.btnHuyCQ);
            this.panel2.Controls.Add(this.btnThemCQ);
            this.panel2.Controls.Add(this.btnLuuCQ);
            this.panel2.Controls.Add(this.btnKetthucCQ);
            this.panel2.Controls.Add(this.btnxoathanhvienCQ);
            this.panel2.Location = new System.Drawing.Point(166, 510);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(527, 35);
            this.panel2.TabIndex = 107;
            this.panel2.Visible = false;
            // 
            // butEdit_cq
            // 
            this.butEdit_cq.BackColor = System.Drawing.SystemColors.Control;
            this.butEdit_cq.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.butEdit_cq.ForeColor = System.Drawing.Color.DarkBlue;
            this.butEdit_cq.Image = ((System.Drawing.Image)(resources.GetObject("butEdit_cq.Image")));
            this.butEdit_cq.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.butEdit_cq.Location = new System.Drawing.Point(76, 4);
            this.butEdit_cq.Name = "butEdit_cq";
            this.butEdit_cq.Size = new System.Drawing.Size(65, 28);
            this.butEdit_cq.TabIndex = 223;
            this.butEdit_cq.Text = "&Sửa";
            this.butEdit_cq.UseVisualStyleBackColor = true;
            this.butEdit_cq.Click += new System.EventHandler(this.butEdit_cq_Click);
            // 
            // btnBoquaCQ
            // 
            this.btnBoquaCQ.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
            this.btnBoquaCQ.DefaultScheme = true;
            this.btnBoquaCQ.DialogResult = System.Windows.Forms.DialogResult.None;
            this.btnBoquaCQ.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnBoquaCQ.ForeColor = System.Drawing.Color.DarkBlue;
            this.btnBoquaCQ.Hint = "";
            this.btnBoquaCQ.Image = ((System.Drawing.Image)(resources.GetObject("btnBoquaCQ.Image")));
            this.btnBoquaCQ.Location = new System.Drawing.Point(218, 3);
            this.btnBoquaCQ.Name = "btnBoquaCQ";
            this.btnBoquaCQ.Scheme = PinkieControls.ButtonXP.Schemes.Blue;
            this.btnBoquaCQ.Size = new System.Drawing.Size(75, 28);
            this.btnBoquaCQ.TabIndex = 105;
            this.btnBoquaCQ.Text = "Bỏ qua";
            this.btnBoquaCQ.TextColor = System.Drawing.Color.DarkBlue;
            this.btnBoquaCQ.Click += new System.EventHandler(this.btnBoquaCQ_Click);
            // 
            // btnHuyCQ
            // 
            this.btnHuyCQ.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
            this.btnHuyCQ.DefaultScheme = true;
            this.btnHuyCQ.DialogResult = System.Windows.Forms.DialogResult.None;
            this.btnHuyCQ.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnHuyCQ.ForeColor = System.Drawing.Color.DarkBlue;
            this.btnHuyCQ.Hint = "";
            this.btnHuyCQ.Image = ((System.Drawing.Image)(resources.GetObject("btnHuyCQ.Image")));
            this.btnHuyCQ.Location = new System.Drawing.Point(370, 3);
            this.btnHuyCQ.Name = "btnHuyCQ";
            this.btnHuyCQ.Scheme = PinkieControls.ButtonXP.Schemes.Blue;
            this.btnHuyCQ.Size = new System.Drawing.Size(65, 28);
            this.btnHuyCQ.TabIndex = 105;
            this.btnHuyCQ.Text = "&Hủy";
            this.btnHuyCQ.TextColor = System.Drawing.Color.DarkBlue;
            this.btnHuyCQ.Click += new System.EventHandler(this.btnHuyCQ_Click);
            // 
            // btnThemCQ
            // 
            this.btnThemCQ.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
            this.btnThemCQ.DefaultScheme = true;
            this.btnThemCQ.DialogResult = System.Windows.Forms.DialogResult.None;
            this.btnThemCQ.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnThemCQ.ForeColor = System.Drawing.Color.DarkBlue;
            this.btnThemCQ.Hint = "";
            this.btnThemCQ.Image = ((System.Drawing.Image)(resources.GetObject("btnThemCQ.Image")));
            this.btnThemCQ.Location = new System.Drawing.Point(5, 4);
            this.btnThemCQ.Name = "btnThemCQ";
            this.btnThemCQ.Scheme = PinkieControls.ButtonXP.Schemes.Blue;
            this.btnThemCQ.Size = new System.Drawing.Size(65, 28);
            this.btnThemCQ.TabIndex = 105;
            this.btnThemCQ.Text = "&Thêm";
            this.btnThemCQ.TextColor = System.Drawing.Color.DarkBlue;
            this.btnThemCQ.Click += new System.EventHandler(this.btnThemCQ_Click);
            // 
            // btnLuuCQ
            // 
            this.btnLuuCQ.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
            this.btnLuuCQ.DefaultScheme = true;
            this.btnLuuCQ.DialogResult = System.Windows.Forms.DialogResult.None;
            this.btnLuuCQ.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnLuuCQ.ForeColor = System.Drawing.Color.DarkBlue;
            this.btnLuuCQ.Hint = "";
            this.btnLuuCQ.Image = ((System.Drawing.Image)(resources.GetObject("btnLuuCQ.Image")));
            this.btnLuuCQ.Location = new System.Drawing.Point(147, 3);
            this.btnLuuCQ.Name = "btnLuuCQ";
            this.btnLuuCQ.Scheme = PinkieControls.ButtonXP.Schemes.Blue;
            this.btnLuuCQ.Size = new System.Drawing.Size(65, 28);
            this.btnLuuCQ.TabIndex = 105;
            this.btnLuuCQ.Text = "Lưu";
            this.btnLuuCQ.TextColor = System.Drawing.Color.DarkBlue;
            this.btnLuuCQ.Click += new System.EventHandler(this.btnLuuCQ_Click);
            // 
            // btnKetthucCQ
            // 
            this.btnKetthucCQ.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
            this.btnKetthucCQ.DefaultScheme = true;
            this.btnKetthucCQ.DialogResult = System.Windows.Forms.DialogResult.None;
            this.btnKetthucCQ.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnKetthucCQ.ForeColor = System.Drawing.Color.DarkBlue;
            this.btnKetthucCQ.Hint = "";
            this.btnKetthucCQ.Image = ((System.Drawing.Image)(resources.GetObject("btnKetthucCQ.Image")));
            this.btnKetthucCQ.Location = new System.Drawing.Point(441, 3);
            this.btnKetthucCQ.Name = "btnKetthucCQ";
            this.btnKetthucCQ.Scheme = PinkieControls.ButtonXP.Schemes.Blue;
            this.btnKetthucCQ.Size = new System.Drawing.Size(80, 28);
            this.btnKetthucCQ.TabIndex = 105;
            this.btnKetthucCQ.Text = "Thoát";
            this.btnKetthucCQ.TextColor = System.Drawing.Color.DarkBlue;
            this.btnKetthucCQ.Click += new System.EventHandler(this.btnKetthucCQ_Click);
            // 
            // btnxoathanhvienCQ
            // 
            this.btnxoathanhvienCQ.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
            this.btnxoathanhvienCQ.DefaultScheme = true;
            this.btnxoathanhvienCQ.DialogResult = System.Windows.Forms.DialogResult.None;
            this.btnxoathanhvienCQ.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnxoathanhvienCQ.ForeColor = System.Drawing.Color.DarkBlue;
            this.btnxoathanhvienCQ.Hint = "";
            this.btnxoathanhvienCQ.Image = ((System.Drawing.Image)(resources.GetObject("btnxoathanhvienCQ.Image")));
            this.btnxoathanhvienCQ.Location = new System.Drawing.Point(299, 3);
            this.btnxoathanhvienCQ.Name = "btnxoathanhvienCQ";
            this.btnxoathanhvienCQ.Scheme = PinkieControls.ButtonXP.Schemes.Blue;
            this.btnxoathanhvienCQ.Size = new System.Drawing.Size(65, 28);
            this.btnxoathanhvienCQ.TabIndex = 105;
            this.btnxoathanhvienCQ.Text = "&Xóa";
            this.btnxoathanhvienCQ.TextColor = System.Drawing.Color.DarkBlue;
            this.btnxoathanhvienCQ.Click += new System.EventHandler(this.btnxoathanhvienCQ_Click);
            // 
            // label27
            // 
            this.label27.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label27.ForeColor = System.Drawing.Color.Blue;
            this.label27.Location = new System.Drawing.Point(16, 511);
            this.label27.Name = "label27";
            this.label27.Size = new System.Drawing.Size(56, 24);
            this.label27.TabIndex = 100;
            this.label27.Text = "Tổng Số ";
            this.label27.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.label27.Visible = false;
            // 
            // txtTSo
            // 
            this.txtTSo.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtTSo.ForeColor = System.Drawing.Color.Red;
            this.txtTSo.Location = new System.Drawing.Point(76, 507);
            this.txtTSo.Name = "txtTSo";
            this.txtTSo.Size = new System.Drawing.Size(64, 22);
            this.txtTSo.TabIndex = 0;
            this.txtTSo.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            this.txtTSo.Visible = false;
            this.txtTSo.WordWrap = false;
            // 
            // lblTenPhongCT
            // 
            this.lblTenPhongCT.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(160)))));
            this.lblTenPhongCT.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lblTenPhongCT.ForeColor = System.Drawing.SystemColors.HighlightText;
            this.lblTenPhongCT.Location = new System.Drawing.Point(651, 5);
            this.lblTenPhongCT.Name = "lblTenPhongCT";
            this.lblTenPhongCT.Size = new System.Drawing.Size(138, 40);
            this.lblTenPhongCT.TabIndex = 213;
            this.lblTenPhongCT.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // lblHoTenNVCT
            // 
            this.lblHoTenNVCT.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(160)))));
            this.lblHoTenNVCT.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lblHoTenNVCT.ForeColor = System.Drawing.SystemColors.HighlightText;
            this.lblHoTenNVCT.Location = new System.Drawing.Point(365, 5);
            this.lblHoTenNVCT.Name = "lblHoTenNVCT";
            this.lblHoTenNVCT.Size = new System.Drawing.Size(280, 40);
            this.lblHoTenNVCT.TabIndex = 212;
            this.lblHoTenNVCT.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // label29
            // 
            this.label29.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(160)))));
            this.label29.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label29.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
            this.label29.Location = new System.Drawing.Point(309, 5);
            this.label29.Name = "label29";
            this.label29.Size = new System.Drawing.Size(56, 40);
            this.label29.TabIndex = 211;
            this.label29.Text = "Họ tên ";
            this.label29.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // label28
            // 
            this.label28.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(160)))));
            this.label28.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label28.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
            this.label28.Location = new System.Drawing.Point(151, 5);
            this.label28.Name = "label28";
            this.label28.Size = new System.Drawing.Size(56, 40);
            this.label28.TabIndex = 216;
            this.label28.Text = "Mã số";
            this.label28.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // lblMasoNVCT
            // 
            this.lblMasoNVCT.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(160)))));
            this.lblMasoNVCT.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lblMasoNVCT.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
            this.lblMasoNVCT.Location = new System.Drawing.Point(209, 6);
            this.lblMasoNVCT.Name = "lblMasoNVCT";
            this.lblMasoNVCT.Size = new System.Drawing.Size(95, 40);
            this.lblMasoNVCT.TabIndex = 215;
            this.lblMasoNVCT.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // toolStrip3
            // 
            this.toolStrip3.AutoSize = false;
            this.toolStrip3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(160)))));
            this.toolStrip3.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.lblHD});
            this.toolStrip3.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStrip3.Location = new System.Drawing.Point(0, 0);
            this.toolStrip3.Name = "toolStrip3";
            this.toolStrip3.Size = new System.Drawing.Size(883, 51);
            this.toolStrip3.TabIndex = 214;
            this.toolStrip3.Text = "toolStrip3";
            // 
            // lblHD
            // 
            this.lblHD.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(160)))));
            this.lblHD.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Bold);
            this.lblHD.ForeColor = System.Drawing.Color.White;
            this.lblHD.Name = "lblHD";
            this.lblHD.Size = new System.Drawing.Size(125, 48);
            this.lblHD.Text = "ĐÀO TẠO    ";
            // 
            // txtid
            // 
            this.txtid.Location = new System.Drawing.Point(730, 453);
            this.txtid.Name = "txtid";
            this.txtid.Size = new System.Drawing.Size(59, 20);
            this.txtid.TabIndex = 218;
            // 
            // txtid_cq
            // 
            this.txtid_cq.Location = new System.Drawing.Point(824, 485);
            this.txtid_cq.Name = "txtid_cq";
            this.txtid_cq.Size = new System.Drawing.Size(59, 20);
            this.txtid_cq.TabIndex = 219;
            this.txtid_cq.Visible = false;
            // 
            // frmDaoTao
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.AutoScroll = true;
            this.ClientSize = new System.Drawing.Size(809, 569);
            this.Controls.Add(this.txtid_cq);
            this.Controls.Add(this.txtid);
            this.Controls.Add(this.lblTenPhongCT);
            this.Controls.Add(this.lblHoTenNVCT);
            this.Controls.Add(this.label29);
            this.Controls.Add(this.label28);
            this.Controls.Add(this.lblMasoNVCT);
            this.Controls.Add(this.toolStrip3);
            this.Controls.Add(this.panel1);
            this.Controls.Add(this.dgrQTDTCoQuan);
            this.Controls.Add(this.txtTSo);
            this.Controls.Add(this.label27);
            this.Controls.Add(this.label45);
            this.Controls.Add(this.label33);
            this.Controls.Add(this.ckbQTDTCoQuan);
            this.Controls.Add(this.label34);
            this.Controls.Add(this.txtHe);
            this.Controls.Add(this.cboTrinhDoNN1);
            this.Controls.Add(this.label41);
            this.Controls.Add(this.cboTDViTinh);
            this.Controls.Add(this.label39);
            this.Controls.Add(this.cboHocVanDT);
            this.Controls.Add(this.label44);
            this.Controls.Add(this.label42);
            this.Controls.Add(this.cboHeTD2);
            this.Controls.Add(this.label43);
            this.Controls.Add(this.cboTrinhDoNN2);
            this.Controls.Add(this.cboHeTD1);
            this.Controls.Add(this.label40);
            this.Controls.Add(this.cboHocHam);
            this.Controls.Add(this.cboTrinhDoDT);
            this.Controls.Add(this.cboHe);
            this.Controls.Add(this.label36);
            this.Controls.Add(this.label37);
            this.Controls.Add(this.label38);
            this.Controls.Add(this.cboChuyenMonTD2);
            this.Controls.Add(this.cboChuyenMonTD1);
            this.Controls.Add(this.cboChuyenMonDT);
            this.Controls.Add(this.label35);
            this.Controls.Add(this.cboHocVanNN2);
            this.Controls.Add(this.label30);
            this.Controls.Add(this.label32);
            this.Controls.Add(this.label31);
            this.Controls.Add(this.cboHocVanNN1);
            this.Controls.Add(this.txtQLNNDaHoc);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.cboTDQLNN);
            this.Controls.Add(this.panel2);
            this.Controls.Add(this.dgrDaoTao);
            this.Controls.Add(this.groupDTCQ);
            this.Controls.Add(this.groupDT);
            this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "frmDaoTao";
            this.ShowInTaskbar = false;
            this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Hồ sơ nhân viên";
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            this.Load += new System.EventHandler(this.frmDaoTaoSua_Load);
            this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.frmDaoTaoSua_MouseMove);
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.frmDaoTaoSua_KeyDown);
            this.groupDTCQ.ResumeLayout(false);
            this.groupDTCQ.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgrQTDTCoQuan)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dgrDaoTao)).EndInit();
            this.groupDT.ResumeLayout(false);
            this.groupDT.PerformLayout();
            this.panel1.ResumeLayout(false);
            this.panel2.ResumeLayout(false);
            this.toolStrip3.ResumeLayout(false);
            this.toolStrip3.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

		}
		#endregion

		private void themnhanvien()
		{	
			try
			{
				upp_llnv_daotao();			
			}
			catch{}			
		}

		private void upp_llnv_daotao()
		{
			string ma_nv=lblMasoNVCT.Text;
			string td1,h,hh,td2,nn2,td3,nn3,td4,nn4,td5,tdvt,qlnn;
			int t;
			string qlnnndh;			
			hv=(cboHocVanDT.SelectedIndex==-1)?"":cboHocVanDT.SelectedValue.ToString();
			cm=(cboChuyenMonDT.SelectedIndex==-1)?"":cboChuyenMonDT.SelectedValue.ToString();
			td1=(cboTrinhDoDT.SelectedIndex==-1)?"":cboTrinhDoDT.SelectedValue.ToString();
			h=(cboHe.SelectedIndex==-1)?"":cboHe.SelectedValue.ToString();			
			t=(txtHe.Text.Trim()=="")?0:int.Parse(txtHe.Text);
			hh=(cboHocHam.SelectedIndex==-1)?"":cboHocHam.SelectedValue.ToString();
			nn1=(cboHocVanNN1.SelectedIndex==-1)?"":cboHocVanNN1.SelectedValue.ToString();
			td2=(cboChuyenMonTD1.SelectedIndex==-1)?"":cboChuyenMonTD1.SelectedValue.ToString();
			nn2=(cboTrinhDoNN1.SelectedIndex==-1)?"":cboTrinhDoNN1.SelectedValue.ToString();
			td3=(cboHeTD1.SelectedIndex==-1)?"":cboHeTD1.SelectedValue.ToString();
			nn3=(cboHocVanNN2.SelectedIndex==-1)?"":cboHocVanNN2.SelectedValue.ToString();
			td4=(cboChuyenMonTD2.SelectedIndex==-1)?"":cboChuyenMonTD2.SelectedValue.ToString();
			nn4=(cboTrinhDoNN2.SelectedIndex==-1)?"":cboTrinhDoNN2.SelectedValue.ToString();
			td5=(cboHeTD2.SelectedIndex==-1)?"":cboHeTD2.SelectedValue.ToString();
			tdvt=(cboTDViTinh.SelectedIndex==-1)?"":cboTDViTinh.SelectedValue.ToString();
			qlnnndh=txtQLNNDaHoc.Text;
			qlnn=(cboTDQLNN.SelectedIndex==-1)?"":cboTDQLNN.SelectedValue.ToString();
            //// biến global
            CHUYENMON=cm;       
			mDB.upd_llnvdaotao(ma_nv,nn1,nn2,nn3,nn4,hv,cm,td1,h,t,td2,td3,td4,td5,tdvt,hh);
			mDB.upd_hopdong_daotao(ma_nv,qlnnndh,qlnn);
			//MessageBox.Show("Đã lưu","Thông báo");
		}
        public string S_CHUYENMON
        {
            get
            {
                return CHUYENMON;
            }
        }
		private void butThem_Click(object sender, System.EventArgs e)
		{
			try
			{
				chon=true;
				themnhanvien();											
				tongso();
				if(dgrDaoTao.VisibleRowCount==0)
				{
					MessageBox.Show(lan.Change_language_MessageText("Chưa nhập quá trình đào tạo"),AccessData.Msg);
				}
			}
			catch{}
		}
		void tongso()
		{
			try
			{
				ds=mDB.f_countNV();
				TSo=ds.Tables[0].Rows[0][0].ToString();
				txtTSo.Text="";
				txtTSo.Text=TSo.ToString();
			}
			catch{}
		}
		
		private bool IsNumeric (string strNum)
		{	
			int iNum;
			try
			{
				iNum = int.Parse(strNum);
				return true;
			}
			catch
			{
				return false;
			}
		}
		
		private void load_LBL()
		{	
			string ma_nv1=lblMasoNVCT.Text.ToString();
			string ho_nv=lblHoTenNVCT.Text.ToString();
			string bophan_nv=lblTenPhongCT.Text.ToString();
			load_daotao();					
			ADGSDaoTao();
			ADGSDaoTaoCQ();					
		}

		private void txtDN_DT_Validated(object sender, System.EventArgs e)
		{
          
            txt_denngay_dt.Text = txt_denngay_dt.Text.Trim();
           
                if (txt_denngay_dt.Text == "  /  /")
                {
                    return;
                }
                if (!mDB.kiemtrangayhople(txt_denngay_dt.Text.Trim()))
                {
                    txt_denngay_dt.Focus();
                    return;
                }
                int ddns = 0, mmns = 0, yyns = 0, dd = 0, mm = 0, yy = 0; string n = "", t = "";
                try
                {
                    ddns = int.Parse(txt_denngay_dt.Text.Substring(0, 2));
                    mmns = int.Parse(txt_denngay_dt.Text.Substring(3, 2));
                    yyns = int.Parse(txt_denngay_dt.Text.Substring(6, 4));
                }
                catch { }
                dd = int.Parse(txt_denngay_dt.Text.Substring(0, 2));
                mm = int.Parse(txt_denngay_dt.Text.Substring(3, 2));
                yy = int.Parse(txt_denngay_dt.Text.Substring(6));

                n = dd.ToString().PadLeft(2, '0');
                t = mm.ToString().PadLeft(2, '0');

                if (txt_denngay_dt.Text != "")
                {
                   
                    txt_denthang.Text = t.ToString();
                    txt_dennam.Text = Convert.ToString(int.Parse(yy.ToString()));
                    // txtTN_CT.Focus();
                }
                else
                {
                   
                    txt_denthang.Text = "";
                    txt_dennam.Text = "";
                }
           
		}		
		private void dgrQTDTCoQuan_CurrentCellChanged(object sender, System.EventArgs e)
		{
			try
			{
				refresh_TextCQ();
			}
			catch(Exception ex)
			{
				MessageBox.Show(ex.ToString());
			}
		}
		private void dgrDaoTao_CurrentCellChanged(object sender, System.EventArgs e)
		{
			try
			{
				refresh_Text();
                Ena_control(false);
                btnBoqua.Enabled = true;
                butEdit.Enabled = admin;
                btnHuy.Enabled = admin;
                btnxoathanhvien.Enabled = admin;
                btnKetthuc.Enabled = true;
			}
			catch{}
		}
		private void btnHuyCQ_Click(object sender, System.EventArgs e)
		{
			DataSet ds=new DataSet();
			string ma_nv=lblMasoNVCT.Text;
            decimal m_id;
            m_id= decimal.Parse(txtid_cq.Text.Trim());
			DialogResult dr = MessageBox.Show(lan.Change_language_MessageText("Đồng ý hủy thông tin này?"),AccessData.Msg,MessageBoxButtons.YesNo);			
			if(dr == DialogResult.Yes) 			
			{	
				try
				{
                    mDB.Execute_data("DELETE  FROM "+m_user+".qtdaotao WHERE manv='" + ma_nv + "'");
                    mDB.Execute_data("DELETE  FROM "+m_user+".hphi WHERE manv='" + ma_nv + "' ");
                    sql= " UPDATE "+m_user+".llnv SET mann='',mann1='',mann2='',mann3='',mahv='',nnghiep='',";
                    sql += " td_nnghiep='',he_dt='',tg_dt=0,tdnn='',tdnn1='',tdnn2='',tdnn3='',tdth='',mahocham=''";
                    sql += " WHERE manv='" + ma_nv + "'";
                    mDB.Execute_data(sql);
                    mDB.Execute_data("UPDATE "+m_user+".hopdong SET namqlnn='' WHERE manv='" + ma_nv + "'");
					MessageBox.Show(lan.Change_language_MessageText("Đã Hủy"));	
					ds=mDB.f_countNV();
					TSo=ds.Tables[0].Rows[0][0].ToString();
					txtTSo.Text="";
					txtTSo.Text=TSo.ToString();
					goicb();
					ADGSDaoTaoCQ();		
					refresh_TextCQ();
                    flag = 0;
				}
				catch {}
			}	
		}

		private void btnxoathanhvienCQ_Click(object sender, System.EventArgs e)
		{
			string ma_nv=lblMasoNVCT.Text;
            decimal m_id;
            m_id = decimal.Parse(txtid_cq.Text.Trim());
			string  ma_hv;			
			try
			{
				int i=dgrQTDTCoQuan.CurrentCell.RowNumber;
				if(i<0)  
					i=dgrQTDTCoQuan.CurrentCell.RowNumber;
				if(i>=0)
				{
					DialogResult dr = MessageBox.Show(lan.Change_language_MessageText("Đồng ý hủy quá trình đào tạo nhân viên này không"),this.Text,MessageBoxButtons.YesNo);								
					if(dr == DialogResult.Yes) 			
					{	
						try
						{		
							ma_hv=dgrQTDTCoQuan[i,1].ToString();
                            mDB.Execute_data("DELETE  FROM "+m_user+".hphi WHERE id=" + m_id + " ") ; //f_Delluoidtcq(ma_nv,ma_hv);
							i=dgrQTDTCoQuan.CurrentCell.RowNumber;
							ADGSDaoTaoCQ();		
							refresh_TextCQ();	
						}
						catch {}
					}
				}
			}
			catch{}
            flag = 0;
		}

		private void btnLuuCQ_Click(object sender, System.EventArgs e)
		{
			try
			{
				chon=true;
				saveQTDTCQ();
                flag = 0;
			}
			catch{}
		}	
		private void saveQTDTCQ()
		{
			try
			{
				if(!kiemtraQTDTCQ()) return;
				string manv_cq,mahv_cq,dot_tt_cq,sohd_cq,hocphi_cq,ngayhp_cq,v_tungay,v_denngay,v_tennganh,donvicq;
				int v_thang;
                decimal id_cq=0;
				manv_cq=lblMasoNVCT.Text;
				mahv_cq=cboNDT_CQ.SelectedValue.ToString();
				v_tennganh=cboNDT_CQ.Text.Trim();
				dot_tt_cq=txtDTT_CQ.Text;
				sohd_cq=txtSPT_CQ.Text;
				hocphi_cq=txtST_CQ.Text;
				ngayhp_cq=txtNTT_CQ.Text;
				v_thang=txtThang.Text!="" ?  int.Parse(txtThang.Text):0;
				v_tungay=txtTungay.Text;              
              
                if (flag == 0)
                {
                    id_cq = get_id_cq();
                }
                else
                {
                    if (txtid_cq.Text != "")
                        id_cq = decimal.Parse(txtid_cq.Text.ToString());
                }

                donvicq = cbodonvicq.Text;
				
				DateTime d1,d2;
				int dd,mm,yy;
				dd=int.Parse(txtTungay.Text.Substring(0,2).ToString());
				mm=int.Parse(txtTungay.Text.Substring(3,2).ToString());
				yy=int.Parse(txtTungay.Text.Substring(6,4).ToString());
				d1=new DateTime(yy,mm,dd);
                d2 = new DateTime();
                if (cbodonvicq.Text == lan.Change_language_MessageText("Ngày"))
                {
                    d2 = d1.AddDays(v_thang);
                }
                if (cbodonvicq.Text == lan.Change_language_MessageText("Tháng"))
                {
                    d2 = d1.AddMonths(v_thang);
                }
                if (cbodonvicq.Text == lan.Change_language_MessageText("Năm"))
                {
                    d2 = d1.AddYears(v_thang);
                }
				
				v_denngay=d2.ToString();               
                mDB.upd_hphi(manv_cq, mahv_cq, dot_tt_cq, sohd_cq, hocphi_cq, ngayhp_cq, ghichu.Text.Trim(), v_thang, v_tungay, v_denngay, v_tennganh, id_cq, donvicq);
				ADGSDaoTaoCQ();
//				butThem.Focus();
				Ena_controlCQ(true);
				Ena_textboxCQ(false);
				refresh_TextCQ();
				btnThemCQ.Focus();
			}
			catch
			{
				MessageBox.Show(lan.Change_language_MessageText("Yêu cầu chọn lại ngành đào tạo"),AccessData.Msg);
				cboNDT_CQ.Focus();
				SendKeys.Send("{F4}");
			}
		}
		private void btnKetthucCQ_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}

		private void btnBoquaCQ_Click(object sender, System.EventArgs e)
		{
			Ena_controlCQ(true);
			Ena_textboxCQ(false);
			refresh_TextCQ();
			btnKetthucCQ.Focus();
            flag = 0;
		}

		private void btnSuaCQ_Click(object sender, System.EventArgs e)
		{
			Ena_controlCQ(false);
			Ena_textboxCQ(true);
			cboNDT_CQ.Enabled=false;
			txtDTT_CQ.Focus();			
		}

		private void btnThemCQ_Click(object sender, System.EventArgs e)
		{
			Ena_controlCQ(false);
			Ena_textboxCQ(true);
			clear_TextCQ();
			cboNDT_CQ.Focus();
			SendKeys.Send("{F4}");
            flag = 0;
		}

		private void btnHuy_Click(object sender, System.EventArgs e)
		{
			DataSet ds=new DataSet();
			string ma_nv=lblMasoNVCT.Text;
            decimal id = decimal.Parse(txtid.Text.Trim());
			DialogResult dr = MessageBox.Show(lan.Change_language_MessageText("Đồng ý hủy thông tin này?"),AccessData.Msg,MessageBoxButtons.YesNo,MessageBoxIcon.Question);			
			if(dr == DialogResult.Yes) 			
			{	
				try
				{

                    mDB.Execute_data("DELETE  FROM "+m_user+".qtdaotao WHERE manv='" + ma_nv + "'");// f_Del5(ma_nv);
                    mDB.Execute_data("DELETE  FROM "+m_user+".hphi WHERE manv='" + ma_nv + "'"); //f_Del5hphi(ma_nv);
                    sql = " UPDATE "+m_user+".llnv SET mann='',mann1='',mann2='',mann3='',mahv='',nnghiep='',";
                    sql += " td_nnghiep='',he_dt='',tg_dt=0,tdnn='',tdnn1='',tdnn2='',tdnn3='',tdth='',mahocham=''";
                    sql += " WHERE manv='" + ma_nv + "'";
                    mDB.Execute_data(sql);
                    mDB.Execute_data("UPDATE "+m_user+".hopdong SET namqlnn='' WHERE manv='" + ma_nv + "'"); //f_Del5hopdong(ma_nv);
					//MessageBox.Show("Đã Hủy");	
					ds=mDB.f_countNV();
					TSo=ds.Tables[0].Rows[0][0].ToString();
					txtTSo.Text="";
					txtTSo.Text=TSo.ToString();
					goicb();
					ADGSDaoTao();	
					refresh_Text();
                    Ena_control(false);
                    btnThem.Enabled = true;
                    btnKetthuc.Enabled = true;
                    flag = 0;
				}
				catch {}
			}	
		}

		private void btnxoathanhvien_Click(object sender, System.EventArgs e)
		{
			string ma_nv,ma_hv,bang_cap;
            decimal id = decimal.Parse(txtid.Text.Trim());
			ma_nv=lblMasoNVCT.Text;
			try
			{
				int i=dgrDaoTao.CurrentCell.RowNumber;
				if(i<0)  
					i=dgrDaoTao.CurrentCell.RowNumber;
				if(i>=0)
				{
					DialogResult dr = MessageBox.Show(lan.Change_language_MessageText("Đồng ý hủy quá trình đào tạo nhân viên này?"),AccessData.Msg,MessageBoxButtons.YesNo);								
					if(dr == DialogResult.Yes) 			
					{	
						try
						{	
							ma_hv=dgrDaoTao[i,1].ToString();
							bang_cap=dgrDaoTao[i,3].ToString();						
							//mDB.f_Delluoidt(ma_hv,bang_cap);										
                            sql="DELETE   FROM "+m_user+".qtdaotao  WHERE id="+ id+ " ";
                            mDB.Execute_data(sql);
							i=dgrDaoTao.CurrentCell.RowNumber;							
							ADGSDaoTao();	
							refresh_Text();
                            Ena_control(false);
                            btnKetthuc.Enabled = true;
                            btnThem.Enabled = true;
                            flag = 0;
						}
						catch {}
					}
				}		
			}
			catch(Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }	
		}

		private void btnLuu_Click(object sender, System.EventArgs e)
		{
			try
			{				
				chon=true;
				saveDT();
				Ena_control(false);
                btnThem.Enabled = true;
                btnKetthuc.Enabled = true;
				Ena_textbox(false);
                btnThem.Enabled = true;
				refresh_Text();
				btnThem.Focus();
                flag = 0;
			}
			catch{}
		}
		private void saveDT()
		{
			try
			{				
				string manv_dt,mahv_dt,mabangcap_dt,hehocvan_dt,thang_dt,tungay_dt,denngay_dt,ghichu_dt,donvi,noidt,tu_nam,den_nam;
                decimal m_id = 0;
				manv_dt=lblMasoNVCT.Text;
				mahv_dt=cbo_ndt_dt.SelectedValue.ToString();
				mabangcap_dt=cbo_bangcap_dt.SelectedValue.ToString();
				hehocvan_dt=cbo_hedt_dt.SelectedValue.ToString();
				thang_dt=txt_tg_dt.Text!=""? txt_tg_dt.Text:"0";

                tungay_dt = txt_tungay_dt.Text.Trim() != "/  /" ? txt_tungay_dt.Text.Trim() : "";
                if (txt_tuthang.Text != "" && txt_tunam.Text != "")
                    tu_nam = txt_tuthang.Text.ToString().Trim().PadLeft(2, '0') + "/" + txt_tunam.Text.ToString();
                else
                    tu_nam = txt_tuthang.Text.ToString().Trim() + txt_tunam.Text.ToString();
                denngay_dt = txt_denngay_dt.Text.Trim() != "/  /" ? txt_denngay_dt.Text.Trim() : "";
                if (txt_denthang.Text != "" && txt_dennam.Text != "")
                    den_nam = txt_denthang.Text.ToString().Trim().PadLeft(2, '0') + "/" + txt_dennam.Text.ToString();
                else
                    den_nam = txt_denthang.Text.ToString().Trim() + txt_dennam.Text.ToString();
                
				ghichu_dt=txt_ghichu_dt.Text;
                donvi = cbo_donvitg.Text;
                noidt = txt_noidaotao_dt.Text;
              
                if (flag == 0)
                {
                    m_id = get_id();
                }
                else
                {
                    if (txtid.Text != "")
                        m_id = decimal.Parse(txtid.Text.ToString());
                }
                //

				mDB.upd_qtdaotao(manv_dt,mahv_dt,mabangcap_dt,hehocvan_dt,thang_dt,tungay_dt,tu_nam,denngay_dt,den_nam,ghichu_dt,m_id,donvi,ten_nd,noidt,mDB.user);
				ADGSDaoTao();								
			}
			catch{}
		}
        decimal get_id()
        {
            decimal m_id = 0;
            sql = "select max(id)+1 as max_id from "+m_user+".qtdaotao ";
            DataSet dst = new DataSet();
            try
            {
                dst = mDB.get_data(sql);
                if (dst.Tables[0].Rows[0]["max_id"].ToString() != "")
                {
                    m_id = decimal.Parse(dst.Tables[0].Rows[0]["max_id"].ToString());
                }
                else
                    m_id = 1;
            }
            catch
            {
                m_id = 1;
            }
            return m_id;
        }
        decimal get_id_cq()
        {
            decimal m_id = 0;
            sql = "select max(id)+1 as max_id from "+m_user+".hphi ";
            DataSet dst = new DataSet();
            try
            {
                dst = mDB.get_data(sql);
                if (dst.Tables[0].Rows[0]["max_id"].ToString() != "")
                {
                    m_id = decimal.Parse(dst.Tables[0].Rows[0]["max_id"].ToString());
                }
                else
                    m_id = 1;
            }
            catch
            {
                m_id = 1;
            }
            return m_id;
        }
		private void btnBoqua_Click(object sender, System.EventArgs e)
		{
			Ena_control(false);
			Ena_textbox(false);
			refresh_Text();
            btnThem.Enabled = true;
            btnKetthuc.Enabled = true;
			btnKetthuc.Focus();
            flag = 0;
		}
		private void refresh_Text()
		{
            string tunam = "", dennam = "",tungay="",denngay="";
                int i = dgrDaoTao.CurrentRowIndex;
                if (i >= 0)
                {
                
                cbo_ndt_dt.SelectedValue = dgrDaoTao[i, 1].ToString();
                cbo_bangcap_dt.SelectedValue = dgrDaoTao[i, 3].ToString();
                cbo_hedt_dt.SelectedValue = dgrDaoTao[i, 5].ToString();
                txt_tg_dt.Text = dgrDaoTao[i, 6].ToString();
                txt_tungay_dt.Text = dgrDaoTao[i, 8].ToString();
                tungay = dgrDaoTao[i, 8].ToString();
                tunam = dgrDaoTao[i, 10].ToString();                
                txt_denngay_dt.Text = dgrDaoTao[i, 9].ToString();
                denngay = dgrDaoTao[i, 9].ToString();
                dennam = dgrDaoTao[i, 11].ToString();
                txt_tuthang.Enabled = false;
                txt_tunam.Enabled = false;
                txt_denthang.Enabled = false;
                txt_dennam.Enabled = false;
                if (tungay != "")
                {
                  
                    txt_tuthang.Text = tungay.Substring(3, 2).ToString();
                    txt_tunam.Text = tungay.Substring(6, 4).ToString();
                }
                else
                {
                   
                    txt_tuthang.Text = "";
                    txt_tunam.Text = tunam;
                   
                }
                if (denngay != "" )
                {
                   
                    txt_denthang.Text = denngay.Substring(3, 2).ToString();
                    txt_dennam.Text = denngay.Substring(6, 4).ToString();
                }
                else
                {
                   
                    txt_denthang.Text = "";
                    txt_dennam.Text = dennam;
                }
                
                if (tunam.Length > 4)
                {
                    txt_tuthang.Text = tunam.Substring(0, 2).ToString();
                    txt_tunam.Text = tunam.Substring(3, 4).ToString();
                    txt_denthang.Text = dennam.Substring(0, 2).ToString();
                    txt_dennam.Text = dennam.Substring(3, 4).ToString();
                }
                
                txt_ghichu_dt.Text = dgrDaoTao[i, 13].ToString();
                txtid.Text = dgrDaoTao[i, 14].ToString();
                txt_noidaotao_dt.Text = dgrDaoTao[i, 12].ToString();
                cbo_donvitg.Text = dgrDaoTao[i, 7].ToString();

			}
		}
		private void refresh_TextCQ()
		{
			int i=dgrQTDTCoQuan.CurrentRowIndex;
			if(i>=0)
			{
				cboNDT_CQ.SelectedValue=dgrQTDTCoQuan[i,1].ToString();
				txtDTT_CQ.Text=dgrQTDTCoQuan[i,2].ToString();
				txtSPT_CQ.Text=dgrQTDTCoQuan[i,3].ToString();
				txtST_CQ.Text=dgrQTDTCoQuan[i,4].ToString();
				txtNTT_CQ.Text=dgrQTDTCoQuan[i,5].ToString();                
				string a ="";
				try
				{
					a=dgrQTDTCoQuan[i,6].ToString();
				}
				catch(Exception ex)
				{
					MessageBox.Show(ex.ToString());
				}
				txtThang.Text=a;
				txtTungay.Text=dgrQTDTCoQuan[i,8].ToString();
				ghichu.Text=dgrQTDTCoQuan[i,9].ToString();
                txtid_cq.Text = dgrQTDTCoQuan[i, 10].ToString();
                cbodonvicq.Text = dgrQTDTCoQuan[i, 7].ToString();
			}
		}
		private void Ena_control(bool ena)
		{
            btnThem.Enabled = ena;
			btnKetthuc.Enabled=ena;
			btnLuu.Enabled=ena;
			btnBoqua.Enabled=ena;
			btnHuy.Enabled=ena;
			btnxoathanhvien.Enabled=ena;
            butEdit.Enabled = ena;
		}
		private void Ena_controlCQ(bool ena)
		{
			btnThemCQ.Enabled=ena;
			btnLuuCQ.Enabled=!ena;
			btnBoquaCQ.Enabled=!ena;
			btnHuyCQ.Enabled=!ena;
			btnxoathanhvienCQ.Enabled=!ena;
			btnKetthucCQ.Enabled=ena;
		}
		private void Ena_textbox(bool ena)
		{
			cbo_ndt_dt.Enabled=ena;
			cbo_bangcap_dt.Enabled=ena;
			cbo_hedt_dt.Enabled=ena;
			txt_tg_dt.Enabled=ena;
			txt_tungay_dt.Enabled=ena;
			txt_denngay_dt.Enabled=ena;
			txt_ghichu_dt.Enabled=ena;
            txtid.Enabled = ena;
            cbo_donvitg.Enabled = ena;
            txt_noidaotao_dt.Enabled = ena;
            //txt_tunam.Enabled = ena;
            //txt_dennam.Enabled = ena;
            //txt_tuthang.Enabled = ena;
            //txt_denthang.Enabled = ena;
		}
		private void Ena_textboxCQ(bool ena)
		{
			cboNDT_CQ.Enabled=ena;
			txtDTT_CQ.Enabled=ena;
			txtSPT_CQ.Enabled=ena;
			txtNTT_CQ.Enabled=ena;
			txtST_CQ.Enabled=ena;
			txtThang.Enabled=ena;
			txtTungay.Enabled=ena;
			ghichu.Enabled=ena;
            txtid_cq.Enabled = ena;
            cbodonvicq.Enabled = ena;
		}

		private void btnSua_Click(object sender, System.EventArgs e)
		{
			Ena_control(false);
			Ena_textbox(true);
			cbo_ndt_dt.Enabled=false;
			cbo_bangcap_dt.Enabled=false;
			cbo_hedt_dt.Focus();
			SendKeys.Send("{F4}");
		}

		private void btnThem_Click(object sender, System.EventArgs e)
		{
			Ena_control(false);
            btnLuu.Enabled = true;
            btnBoqua.Enabled = true;
			Ena_textbox(true);
            txt_tunam.Enabled = true;
            txt_dennam.Enabled = true;
            txt_tuthang.Enabled = true;
            txt_denthang.Enabled = true;
			clear_Text();
			cbo_ndt_dt.Focus();
			SendKeys.Send("{F4}");
            flag = 0;
		}
		private void clear_Text()
		{
			cbo_ndt_dt.SelectedIndex=-1;
			cbo_bangcap_dt.SelectedIndex=-1;
			cbo_hedt_dt.SelectedIndex=-1;
            cbo_donvitg.SelectedIndex = -1;
			txt_tg_dt.Clear();
			txt_tungay_dt.Clear();
			txt_denngay_dt.Clear();
            txt_dennam.Clear();
            txt_tunam.Clear();
			txt_ghichu_dt.Clear();
            txtid.Clear();
            txt_noidaotao_dt.Clear();
            txt_tuthang.Clear();
            txt_denthang.Clear();
		}
		private void clear_TextCQ()
		{
			cboNDT_CQ.SelectedIndex=-1;
			txtDTT_CQ.Clear();
			txtNTT_CQ.Clear();
			txtST_CQ.Clear();
			txtThang.Clear();
			txtTungay.Clear();
			ghichu.Clear();
            txtid_cq.Clear();
		}

		private void btnKetthuc_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}

		private void txtDTT_CQ_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
		{
			if (!IsNumeric(e.KeyChar.ToString()))
				e.Handled = true;
			if(e.KeyChar==8)
				e.Handled=false;
		}

		private void txtThang_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
		{
			if (!IsNumeric(e.KeyChar.ToString()))
				e.Handled = true;
			if(e.KeyChar==8)
				e.Handled=false;
		}

		private void txtTungay_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if(e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}");
		}

		private void txtThang_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if(e.KeyCode==Keys.Enter)
                SendKeys.Send("{Tab}{F4}");
		}

		private void txtT_DT_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if(e.KeyCode==Keys.Enter)
			{
                SendKeys.Send("{Tab}{F4}");				
			}
		}

		private void txtNV_TGDT_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
		{
			if (!IsNumeric(e.KeyChar.ToString()))
				e.Handled = true;
			if(e.KeyChar==8)
				e.Handled=false;
		}
		
		
		private void textBox1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
            if (e.KeyCode == Keys.Enter)
			{
				btnLuuCQ.Focus();
			}
		}

		private void cmdLuuDTCQ_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}{F4}");
		}

		private void frmDaoTaoSua_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
		{
			if (bClear)
			{
				goicb();
				load_LBL();	
				tongso();
				bClear=false;
			}
		}

		private void butHuy_Click(object sender, System.EventArgs e)
		{
			DataSet ds=new DataSet();
			string ma_nv=lblMasoNVCT.Text;
			DialogResult dr = MessageBox.Show(lan.Change_language_MessageText("Đồng ý hủy thông tin này?"),AccessData.Msg,MessageBoxButtons.YesNo);			
			if(dr == DialogResult.Yes) 			
			{	
				try
				{					
                    mDB.Execute_data("DELETE * FROM "+m_user+".qtdaotao WHERE manv='" + ma_nv + "'");// f_Del5(ma_nv);
                    mDB.Execute_data("DELETE * FROM "+m_user+".hphi WHERE manv='" + ma_nv + "'"); //f_Del5hphi(ma_nv);
                    sql = " UPDATE "+m_user+".llnv SET mann='',mann1='',mann2='',mann3='',mahv='',nnghiep='',";
                    sql += " td_nnghiep='',he_dt='',tg_dt=0,tdnn='',tdnn1='',tdnn2='',tdnn3='',tdth='',mahocham=''";
                    sql += " WHERE manv='" + ma_nv + "'";
                    mDB.Execute_data(sql);// f_Del5llnv(ma_nv);
                    mDB.Execute_data("UPDATE "+m_user+".hopdong SET namqlnn='' WHERE manv='" + ma_nv + "'"); //f_Del5hopdong(ma_nv);
                     
					MessageBox.Show(lan.Change_language_MessageText("Đã Hủy"));	
					ds=mDB.f_countNV();
					TSo=ds.Tables[0].Rows[0][0].ToString();
					txtTSo.Text="";
					txtTSo.Text=TSo.ToString();
					goicb();
				}
				catch {}
			}			
		}

		private void menuItem4_Click(object sender, System.EventArgs e)
		{
			groupDTCQ.Visible=false;
			string ma_nv=lblMasoNVCT.Text;			
			string  ma_hv;			
			try
			{
				int i=dgrQTDTCoQuan.CurrentCell.RowNumber;
				if(i<0)  
					i=dgrQTDTCoQuan.CurrentCell.RowNumber;
				if(i>=0)
				{
					DialogResult dr = MessageBox.Show(lan.Change_language_MessageText("Đồng ý hủy quá trình đào tạo nhân viên này không"),AccessData.Msg,MessageBoxButtons.YesNo);								
					if(dr == DialogResult.Yes) 			
					{	
						try
						{		
							ma_hv=dgrQTDTCoQuan[i,1].ToString();							
							//mDB.f_Delluoidtcq(ma_nv,ma_hv);
                            sql="DELETE  FROM "+m_user+".hphi WHERE manv='"+ma_nv.Trim()+"' AND mahv='"+ma_hv.Trim()+"'";
                            mDB.Execute_data(sql);
							i=dgrQTDTCoQuan.CurrentCell.RowNumber;
							ADGSDaoTaoCQ();										
						}
						catch {}
					}
				}
			}
			catch{}			
		}

		private void menuItem3_Click(object sender, System.EventArgs e)
		{
			groupDTCQ.Visible=true;
			load_qtdt();
			cboNDT_CQ.Focus();
			SendKeys.Send("{F4}");		
		}

		private void load_qtdt()
		{
			cboNDT_CQ.Focus();
			cboNDT_CQ.DisplayMember="tenctdt";
			cboNDT_CQ.ValueMember="mactdt";
            cboNDT_CQ.DataSource = mDB.get_ctdaotao().Tables[0];				
			cboNDT_CQ.SelectedIndex=-1;
			txtDTT_CQ.Text="";txtSPT_CQ.Text="";txtST_CQ.Text="";txtNTT_CQ.Text="";
		}
		private void menuItem2_Click(object sender, System.EventArgs e)
		{
			groupDT.Visible=false;								
			string ma_nv,ma_hv,bang_cap;
			ma_nv=lblMasoNVCT.Text;
			try
			{
				int i=dgrDaoTao.CurrentCell.RowNumber;
				if(i<0)  
					i=dgrDaoTao.CurrentCell.RowNumber;
				if(i>=0)
				{
					DialogResult dr = MessageBox.Show(lan.Change_language_MessageText("Đồng ý hủy quá trình đào tạo nhân viên này?"),AccessData.Msg,MessageBoxButtons.YesNo);								
					if(dr == DialogResult.Yes) 			
					{	
						try
						{	
							ma_hv=dgrDaoTao[i,1].ToString();
							bang_cap=dgrDaoTao[i,3].ToString();						
							//mDB.f_Delluoidt(ma_hv,bang_cap);										
                            sql = "DELETE   FROM "+m_user+".qtdaotao  WHERE mahv='" + ma_hv.Trim() + "' AND mabangcap='" + bang_cap.Trim() + "'";
                            mDB.Execute_data(sql);
							i=dgrDaoTao.CurrentCell.RowNumber;							
							ADGSDaoTao();					
						}
						catch {}
					}
				}
				else
				{	
					MessageBox.Show(lan.Change_language_MessageText("Không Có Hủy"));	
				}
			}
			catch{}			
		}

		private void load_dm()
		{
			cbo_ndt_dt.SelectedIndex=-1;
			cbo_ndt_dt.Focus();
			cbo_ndt_dt.DisplayMember="tenctdt";
			cbo_ndt_dt.ValueMember="mactdt";
			cbo_ndt_dt.DataSource=mDB.get_ctdaotao().Tables[0];				

			cbo_bangcap_dt.DisplayMember="tenbang";
			cbo_bangcap_dt.ValueMember="mabangcap";
            cbo_bangcap_dt.DataSource = mDB.get_bangcap().Tables[0];

			cbo_hedt_dt.DisplayMember="tenhe";
			cbo_hedt_dt.ValueMember="mahe";
            cbo_hedt_dt.DataSource = mDB.get_hedaotao().Tables[0];
			cbo_ndt_dt.SelectedIndex=-1;cbo_bangcap_dt.SelectedIndex=-1;cbo_hedt_dt.SelectedIndex=-1;
            txt_tg_dt.Text = ""; txt_tungay_dt.Text = ""; txt_denngay_dt.Text = ""; txt_ghichu_dt.Text = ""; txt_noidaotao_dt.Text = "";
		}
		private void menuItem1_Click(object sender, System.EventArgs e)
		{
			groupDT.Visible=true;
			load_dm();
			cbo_ndt_dt.Focus();
			SendKeys.Send("{F4}");
		}		
		private void ckbQTDTCoQuan_CheckStateChanged(object sender, System.EventArgs e)
		{
			if (ckbQTDTCoQuan.Checked)
			{
				
				dgrQTDTCoQuan.Visible = true;
				groupDTCQ.Visible=true;
				panel2.Visible=true;
				Ena_textbox(false);
				panel1.Visible=false;
				dgrDaoTao.Visible = false;
				groupDT.Visible=false;
				
			}
			else 
			{
                dgrQTDTCoQuan.Visible = false;
                groupDTCQ.Visible = false;
                panel2.Visible = false;
                Ena_textbox(true);
                panel1.Visible = true;
                dgrDaoTao.Visible = true;
                groupDT.Visible = true;
			}
			
		}

		private void txtTN_DT_Validated(object sender, System.EventArgs e)
		{
            txt_tungay_dt.Text = txt_tungay_dt.Text.Trim();
            try
			{
                if (txt_tungay_dt.Text == "  /  /")
                {
                    return;
                }
                if(!mDB.kiemtrangayhople(txt_tungay_dt.Text.Trim()))
				{
					txt_tungay_dt.Focus();
					return;
				}
                int ddns = 0, mmns = 0, yyns = 0, dd = 0, mm = 0, yy = 0; string n = "", t = "";				
				try
				{					
					ddns=int.Parse(txt_tungay_dt.Text.Substring(0,2));
					mmns=int.Parse(txt_tungay_dt.Text.Substring(3,2));
					yyns=int.Parse(txt_tungay_dt.Text.Substring(6,4));
				}
				catch{}
                dd = int.Parse(txt_tungay_dt.Text.Substring(0, 2));
                mm = int.Parse(txt_tungay_dt.Text.Substring(3, 2));
                yy = int.Parse(txt_tungay_dt.Text.Substring(6));

                n = dd.ToString().PadLeft(2, '0');
                t = mm.ToString().PadLeft(2, '0');
                if (txt_tungay_dt.Text != "")
                {
                   
                    txt_tuthang.Text = t.ToString();
                    txt_tunam.Text = Convert.ToString(int.Parse(yy.ToString()));
                    // txtTN_CT.Focus();
                }
                else
                {
                    
                    txt_tuthang.Text = "";
                    txt_tunam.Text = "";
                }
				int temp;
				temp=int.Parse(txt_tg_dt.Text);		
				DateTime d1,d2;
				d1=new DateTime(yyns,mmns,ddns);
				d2=d1.AddMonths(temp);
                if (cbo_donvitg.Text == lan.Change_language_MessageText("Ngày"))
                {
                    d2 = d1.AddDays(temp);
                }
                if (cbo_donvitg.Text == lan.Change_language_MessageText("Tháng"))
                {
                    d2 = d1.AddMonths(temp);
                }
                if (cbo_donvitg.Text == lan.Change_language_MessageText("Năm"))
                {
                    d2 = d1.AddYears(temp);
                }
                //txt_denngay_dt.Text = d2.ToString("dd/MM/yyyy", null);
			}
			catch{}
		}

		private void txtT_DT_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
		{
			if (!IsNumeric(e.KeyChar.ToString()))
				e.Handled = true;
			if(e.KeyChar==8)
				e.Handled=false;
		}

		private void cboH_DT_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				txt_tg_dt.Focus();
		}

		private void cboBC_DT_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
			{
				cbo_hedt_dt.Focus();
				SendKeys.Send("{F4}");
			}
		}

		private void cboNDT_DT_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
			{
				cbo_bangcap_dt.Focus();
				SendKeys.Send("{F4}");
			}
		}
		private void dgrQTDTCoQuan_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}");
		}

		private void dgrDaoTao_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}");
		}
		private bool kiemtraQTDT()
		{
			if(cbo_ndt_dt.SelectedIndex==-1)
			{
				MessageBox.Show(lan.Change_language_MessageText("Chọn ngành đào tạo"),AccessData.Msg);
				cbo_ndt_dt.Focus();
				SendKeys.Send("{F4}");
				return false;
			}
			if(cbo_bangcap_dt.SelectedIndex==-1)
			{
				MessageBox.Show(lan.Change_language_MessageText("Yêu cầu chọn bằng cấp"),AccessData.Msg);
				cbo_bangcap_dt.Focus();
				SendKeys.Send("{F4}");
				return false;
			}
			if(cbo_hedt_dt.SelectedIndex==-1)
			{
				MessageBox.Show(lan.Change_language_MessageText("Yêu cầu chọn hệ đào tạo"),AccessData.Msg);
				cbo_hedt_dt.Focus();
				SendKeys.Send("{F4}");
				return false;
			}
			if(txt_tg_dt.Text=="")
			{
				MessageBox.Show(lan.Change_language_MessageText("Nhập thời gian đào tạo"),AccessData.Msg);
				txt_tg_dt.Focus();
				return false;
			}
			if(txt_tungay_dt.Text=="")
			{
				MessageBox.Show(lan.Change_language_MessageText("Nhập từ ngày đào tạo"),AccessData.Msg);
				txt_tungay_dt.Focus();
				return false;
			}	
			return true;
		}
		private bool kiemtraQTDTCQ()
		{
			if(txtDTT_CQ.Text=="")
			{
				MessageBox.Show(lan.Change_language_MessageText("Yêu cầu nhập đợt thanh toán"),AccessData.Msg);
				txtDTT_CQ.Focus();
				return false;
			}
			if(txtSPT_CQ.Text=="")
			{
				MessageBox.Show(lan.Change_language_MessageText("Yêu cầu nhập số phiếu thu"),AccessData.Msg);
				txtSPT_CQ.Focus();
				return false;
			}
			if(txtST_CQ.Text=="")
			{
				MessageBox.Show(lan.Change_language_MessageText("Yêu cầu nhập số tiền"),AccessData.Msg);
				txtST_CQ.Focus();
				return false;
			}
			if(txtNTT_CQ.Text=="")
			{
				MessageBox.Show(lan.Change_language_MessageText("Yêu cầu nhập ngày thanh toán"),AccessData.Msg);
				txtNTT_CQ.Focus();
				return false;
			}
			if(txtTungay.Text=="")
			{
				MessageBox.Show(lan.Change_language_MessageText("Yêu cầu nhập ngày học"),AccessData.Msg);
				txtTungay.Focus();
				return false;
			}
			if(txtThang.Text=="")
			{
				MessageBox.Show(lan.Change_language_MessageText("Yêu cầu nhập thời gian đào tạo"),AccessData.Msg);
				txtThang.Focus();
				return false;
			}
			return true;
		}
	
		private void txtNTT_CQ_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
			{
				SendKeys.Send("{Tab}");				
			}
		}

		private void txtST_CQ_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}");
		}

		private void txtSPT_CQ_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}");
		}

		private void txtDTT_CQ_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}");
		}

		private void cboNDT_CQ_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				txtDTT_CQ.Focus();
		}

		private void cboTDViTinh_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}{F4}");
		}

		private void cboHeTD2_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}{F4}");
		}

		private void cboTrinhDoNN2_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}{F4}");
		}

		private void cboChuyenMonTD2_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}{F4}");
		}

		private void cboHocVanNN2_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}{F4}");
		}

		private void txtQLNNDaHoc_Validated(object sender, System.EventArgs e)
		{
			try
			{
				if(txtQLNNDaHoc.Text!="")
				{
					if(txtQLNNDaHoc.TextLength!=4)
					{
						MessageBox.Show(lan.Change_language_MessageText("Nhập năm không hợp lệ"));
						txtQLNNDaHoc.Focus();
					}
					if(int.Parse(txtQLNNDaHoc.Text.ToString())>DateTime.Now.Year)
					{
						MessageBox.Show(lan.Change_language_MessageText("Năm đã học không được lớn hơn năm hiện hành"),AccessData.Msg);
						txtQLNNDaHoc.Focus();
					}
                    upp_llnv_daotao();
				}
			}
			catch{}
		}

		private void txtQLNNDaHoc_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
		{
			if (!IsNumeric(e.KeyChar.ToString()))
				e.Handled = true;
			if(e.KeyChar==8)
				e.Handled=false;				
		}

		private void txtQLNNDaHoc_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}{F4}");
		}

		private void cboHeTD1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}{F4}");
		}

		private void cboTrinhDoNN1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}{F4}");
		}

		private void cboChuyenMonTD1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}{F4}");
		}

		private void cboHocVanNN1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}{F4}");
		}

		private void cboHocHam_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}{F4}");
		}

		private void txtHe_Validating(object sender, System.ComponentModel.CancelEventArgs e)
		{
            if (txtHe.TextLength == 0)
            {
                cboHocHam.Focus();
                SendKeys.Send("{F4}");
            }
            else
            {
                txtHe.Text = mDB.Caps(txtHe.Text.ToString());
                upp_llnv_daotao();
            }
		}

		
		private void txtHe_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
		{
			if (!IsNumeric(e.KeyChar.ToString()))
				e.Handled = true;
			if(e.KeyChar==8)
				e.Handled=false;
		}

		private void txtHe_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
			{
				if(txtHe.Text=="")
				{
					txtHe.Text="0";				
				}
				SendKeys.Send("{Tab}{F4}");
			}
		}

		private void cboHe_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}{F4}");
		}

		private void cboTrinhDoDT_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}{F4}");
		}

		private void cboChuyenMonDT_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}{F4}");
		}

		private void cboHocVanDT_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode==Keys.Enter)
				SendKeys.Send("{Tab}{F4}");
		}

		private void butKetThuc_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}

		private void frmDaoTaoSua_Load(object sender, System.EventArgs e)
		{
			load_dm();
            Load_dm_DaoTao();
			load_qtdt();
			refresh_Text();
			Ena_control(false);
            btnThem.Enabled = true;
            btnKetthuc.Enabled = true;
			Ena_controlCQ(true);
			Ena_textbox(false);
			Ena_textboxCQ(false);
            load_LBL();
            tongso();			
		}
	
		private void Load_HocVanDT()
		{
			cboHocVanDT.DisplayMember="tenhv";
			cboHocVanDT.ValueMember="mahv";
            cboHocVanDT.DataSource = mDB.get_hocvan().Tables[0];
			cboHocVanDT.SelectedIndex=-1;
		}
		private void Load_TDQLNN()
		{
			cboTDQLNN.DisplayMember="ten";
			cboTDQLNN.ValueMember="ma";
            cboTDQLNN.DataSource = mDB.get_tdqlnn().Tables[0];
			cboTDQLNN.SelectedIndex=-1;
		}
		private void Load_HVNN1()
		{
			cboHocVanNN1.DisplayMember="tennn";
			cboHocVanNN1.ValueMember="mann";
            cboHocVanNN1.DataSource = mDB.get_ngoaingu().Tables[0];
			cboHocVanNN1.SelectedIndex=-1;
		}

		private void Load_HVNN2()
		{
			cboHocVanNN2.DisplayMember="tennn";
			cboHocVanNN2.ValueMember="mann";
            cboHocVanNN2.DataSource = mDB.get_ngoaingu().Tables[0];
			cboHocVanNN2.SelectedIndex=-1;
		}

		private void Load_ChuyenMonDT()
		{
			cboChuyenMonDT.DisplayMember="tenctdt";
			cboChuyenMonDT.ValueMember="mactdt";
            cboChuyenMonDT.DataSource = mDB.get_ctdaotao().Tables[0];
		}

		private void Load_CMTD1()
		{
			cboChuyenMonTD1.DisplayMember="ten";
			cboChuyenMonTD1.ValueMember="ma";
            cboChuyenMonTD1.DataSource = mDB.get_tdnnth().Tables[0];
		}

		private void Load_CMTD2()
		{
			cboChuyenMonTD2.DisplayMember="ten";
			cboChuyenMonTD2.ValueMember="ma";
            cboChuyenMonTD2.DataSource = mDB.get_tdnnth().Tables[0];
		}

		private void Load_TrinhDoDT()
		{
			cboTrinhDoDT.DisplayMember="tenbang";
			cboTrinhDoDT.ValueMember="mabangcap";
            cboTrinhDoDT.DataSource = mDB.get_bangcap().Tables[0];
		}

		private void Load_TDNN1()
		{			
			cboTrinhDoNN1.DisplayMember="tennn";
			cboTrinhDoNN1.ValueMember="mann";
            cboTrinhDoNN1.DataSource = mDB.get_ngoaingu().Tables[0];
			cboTrinhDoNN1.SelectedIndex=-1;
		}

		private void Load_TDNN2()
		{			
			cboTrinhDoNN2.DisplayMember="tennn";
			cboTrinhDoNN2.ValueMember="mann";
            cboTrinhDoNN2.DataSource = mDB.get_ngoaingu().Tables[0];
			cboTrinhDoNN2.SelectedIndex=-1;
		}

		private void Load_HeDT()
		{
			cboHe.DisplayMember="tenhe";
			cboHe.ValueMember="mahe";
            cboHe.DataSource = mDB.get_hedaotao().Tables[0];
		}
		private void Load_HTD1()
		{
			cboHeTD1.DisplayMember="ten";
			cboHeTD1.ValueMember="ma";
            cboHeTD1.DataSource = mDB.get_tdnnth().Tables[0];
		}

		private void Load_HTD2()
		{
			cboHeTD2.DisplayMember="ten";
			cboHeTD2.ValueMember="ma";
            cboHeTD2.DataSource = mDB.get_tdnnth().Tables[0];
		}
		private void Load_HocHamDT()
		{
			cboHocHam.DisplayMember="tenhocham";
			cboHocHam.ValueMember="mahocham";
            cboHocHam.DataSource = mDB.get_hocham().Tables[0];
		}

		private void Load_TDViTinh()
		{
			cboTDViTinh.DisplayMember="ten";
			cboTDViTinh.ValueMember="ma";
            cboTDViTinh.DataSource = mDB.get_tdnnth().Tables[0];
		}
	
		private void goicb()
		{				
			cboHocVanDT.SelectedIndex = -1;cboChuyenMonDT.SelectedIndex=-1;
			cboTrinhDoDT.SelectedIndex=-1;cboHe.SelectedIndex=-1;txtHe.Text="";cboHocHam.SelectedIndex=-1;
			cboHocVanNN1.SelectedIndex=-1;cboChuyenMonTD1.SelectedIndex=-1;cboTrinhDoNN1.SelectedIndex=-1;
			cboHeTD1.SelectedIndex=-1;txtQLNNDaHoc.Text="";
			cboHocVanNN2.SelectedIndex=-1;cboChuyenMonTD2.SelectedIndex=-1;cboTrinhDoNN2.SelectedIndex=-1;
			cboHeTD2.SelectedIndex=-1;cboTDViTinh.SelectedIndex=-1;					
		}
		private void ADGSDaoTao()
		{				
			try
			{
				string ma_nv;
				ma_nv=lblMasoNVCT.Text;
				ds=mDB.f_Daotao(ma_nv);							
				
				dgrDaoTao.TableStyles.Clear();
				DataGridTableStyle ts = new DataGridTableStyle();
				ts.MappingName = ds.Tables[0].TableName;
					
				ts.AlternatingBackColor = Color.Beige;
				ts.BackColor = Color.GhostWhite;
				ts.ForeColor = Color.MidnightBlue;
				ts.GridLineColor = Color.RoyalBlue;
				ts.HeaderBackColor = Color.MidnightBlue;
				ts.HeaderForeColor = Color.Lavender;
				ts.SelectionBackColor = Color.Teal;
				ts.SelectionForeColor = Color.PaleGreen;
				ts.RowHeaderWidth=10;
				
				DataGridTextBoxColumn TextCol1=new DataGridTextBoxColumn();
				TextCol1.MappingName = "tenctdt";
				TextCol1.HeaderText = lan.Change_language_MessageText("Ngành đào tạo");					
				TextCol1.Width = 120;
				TextCol1.Alignment=HorizontalAlignment.Left;
				ts.GridColumnStyles.Add(TextCol1);
				dgrDaoTao.TableStyles.Add(ts);
			
				DataGridTextBoxColumn TextCol2=new DataGridTextBoxColumn();
				TextCol2.MappingName = "mahv";				
				TextCol2.HeaderText = lan.Change_language_MessageText("Mã ngành");
				TextCol2.Width = 0;
				ts.GridColumnStyles.Add(TextCol2);
				dgrDaoTao.TableStyles.Add(ts);

				DataGridTextBoxColumn TextCol3=new DataGridTextBoxColumn();
				TextCol3.MappingName = "tenbang";
				TextCol3.HeaderText = lan.Change_language_MessageText("Bằng cấp");
				TextCol3.Width = 120;
				TextCol3.Alignment=HorizontalAlignment.Left;
				ts.GridColumnStyles.Add(TextCol3);
				dgrDaoTao.TableStyles.Add(ts);			
				
				DataGridTextBoxColumn TextCol4=new DataGridTextBoxColumn();
				TextCol4.MappingName = "mabangcap";				
				TextCol4.HeaderText = lan.Change_language_MessageText("Mã bằng");
				TextCol4.Width = 0;
				ts.GridColumnStyles.Add(TextCol4);
				dgrDaoTao.TableStyles.Add(ts);
				
				DataGridTextBoxColumn TextCol5=new DataGridTextBoxColumn();
				TextCol5.MappingName = "tenhe";
				TextCol5.HeaderText = lan.Change_language_MessageText("Hệ");
				TextCol5.Width = 80;
				TextCol5.Alignment=HorizontalAlignment.Left;
				ts.GridColumnStyles.Add(TextCol5);
				dgrDaoTao.TableStyles.Add(ts);

				DataGridTextBoxColumn TextCol6=new DataGridTextBoxColumn();
				TextCol6.MappingName = "hehocvan";				
				TextCol6.HeaderText = lan.Change_language_MessageText("Mã hệ");
				TextCol6.Width = 0;
				ts.GridColumnStyles.Add(TextCol6);
				dgrDaoTao.TableStyles.Add(ts);
			
				DataGridTextBoxColumn TextCol7=new DataGridTextBoxColumn();
				TextCol7.MappingName = "thang";
                TextCol7.HeaderText = lan.Change_language_MessageText("Thời gian");
				TextCol7.Width = 40;
				TextCol7.Alignment=HorizontalAlignment.Left;
				ts.GridColumnStyles.Add(TextCol7);
				dgrDaoTao.TableStyles.Add(ts);

                DataGridTextBoxColumn TextCol8 = new DataGridTextBoxColumn();
                TextCol8.MappingName = "donvi";
                TextCol8.HeaderText = lan.Change_language_MessageText("Đơn vị");
                TextCol8.Width = 50;
                TextCol8.Alignment = HorizontalAlignment.Left;
                ts.GridColumnStyles.Add(TextCol8);
                dgrDaoTao.TableStyles.Add(ts);

				DataGridTextBoxColumn TextCol9=new DataGridTextBoxColumn();
				TextCol9.MappingName = "tungay";
				TextCol9.HeaderText = lan.Change_language_MessageText("Từ ngày");
				TextCol9.Width = 80;
				TextCol9.Alignment=HorizontalAlignment.Left;
				ts.GridColumnStyles.Add(TextCol9);
				dgrDaoTao.TableStyles.Add(ts);

                DataGridTextBoxColumn TextCol10 = new DataGridTextBoxColumn();
                TextCol10.MappingName = "denngay";
                TextCol10.HeaderText = lan.Change_language_MessageText("Đến ngày");
                TextCol10.Width = 80;
                TextCol10.Alignment = HorizontalAlignment.Left;
                ts.GridColumnStyles.Add(TextCol10);
                dgrDaoTao.TableStyles.Add(ts);

                DataGridTextBoxColumn TextCol11 = new DataGridTextBoxColumn();
                TextCol11.MappingName = "tunam";
                TextCol11.HeaderText = lan.Change_language_MessageText("Từ năm");
                TextCol11.Width = 50;
                TextCol11.Alignment = HorizontalAlignment.Left;
                ts.GridColumnStyles.Add(TextCol11);
                dgrDaoTao.TableStyles.Add(ts);
			
				DataGridTextBoxColumn TextCol12=new DataGridTextBoxColumn();
				TextCol12.MappingName = "dennam";
				TextCol12.HeaderText = lan.Change_language_MessageText("Đến năm");
				TextCol12.Width = 50;
				TextCol12.Alignment=HorizontalAlignment.Left;
				ts.GridColumnStyles.Add(TextCol12);
				dgrDaoTao.TableStyles.Add(ts);

                DataGridTextBoxColumn TextCol13 = new DataGridTextBoxColumn();
                TextCol13.MappingName = "noi_dt";
                TextCol13.HeaderText = lan.Change_language_MessageText("Nơi đào tạo");
                TextCol13.Width = 130;
                TextCol13.Alignment = HorizontalAlignment.Left;
                ts.GridColumnStyles.Add(TextCol13);
                dgrDaoTao.TableStyles.Add(ts); 

				DataGridTextBoxColumn TextCol14=new DataGridTextBoxColumn();
				TextCol14.MappingName = "ghichu";
				TextCol14.HeaderText = lan.Change_language_MessageText("Ghi chú");
				TextCol14.Width = 120;
				TextCol14.Alignment=HorizontalAlignment.Left;
				ts.GridColumnStyles.Add(TextCol14);
				dgrDaoTao.TableStyles.Add(ts);

                DataGridTextBoxColumn TextCol15 = new DataGridTextBoxColumn();
                TextCol15.MappingName = "id";
                TextCol15.HeaderText = "ID";
                TextCol15.Width = 30;
                TextCol15.Alignment = HorizontalAlignment.Left;
                ts.GridColumnStyles.Add(TextCol15);
                dgrDaoTao.TableStyles.Add(ts);

				ts.DataGrid.DataSource=ds.Tables[0]; 

				CurrencyManager cm = (CurrencyManager) BindingContext[dgrDaoTao.DataSource,dgrDaoTao.DataMember];
				DataView dv = (DataView ) cm.List;
				dv.AllowNew=false;
				dv.AllowEdit=false;
				dv.AllowDelete=false;
			}
			catch{}
		}		
		private void Load_dm_DaoTao()
		{
			Load_HocVanDT();		Load_HVNN1();
			Load_HVNN2();		    Load_ChuyenMonDT();
			Load_CMTD1();			Load_CMTD2();
			Load_TrinhDoDT();		Load_TDNN1();
			Load_TDNN2();		    Load_HeDT();
			Load_HTD1();			Load_HTD2();
			Load_HocHamDT();		Load_TDViTinh();					
			Load_TDQLNN();
		}
		private void ADGSDaoTaoCQ()
		{
			try
			{
                string ma_nv;
                ma_nv = lblMasoNVCT.Text;
                ds = mDB.f_DaotaoCQ(ma_nv);
             
                dgrQTDTCoQuan.TableStyles.Clear();
                DataGridTableStyle ts = new DataGridTableStyle();
                ts.MappingName = ds.Tables[0].TableName;

                ts.AlternatingBackColor = Color.Beige;
                ts.BackColor = Color.GhostWhite;
                ts.ForeColor = Color.MidnightBlue;
                ts.GridLineColor = Color.RoyalBlue;
                ts.HeaderBackColor = Color.MidnightBlue;
                ts.HeaderForeColor = Color.Lavender;
                ts.SelectionBackColor = Color.Teal;
                ts.SelectionForeColor = Color.PaleGreen;

                DataGridTextBoxColumn TextCol1 = new DataGridTextBoxColumn();
                TextCol1.MappingName = "tenctdt";
                TextCol1.HeaderText = lan.Change_language_MessageText("Ngành đào tạo");
                TextCol1.Width = 100;
                TextCol1.Alignment = HorizontalAlignment.Left;
                ts.GridColumnStyles.Add(TextCol1);
                dgrQTDTCoQuan.TableStyles.Add(ts);

                DataGridTextBoxColumn TextCol12 = new DataGridTextBoxColumn();
                TextCol12.MappingName = "mahv";
                TextCol12.HeaderText = lan.Change_language_MessageText("Mã ngành");
                TextCol12.Width = 0;
                ts.GridColumnStyles.Add(TextCol12);
                dgrQTDTCoQuan.TableStyles.Add(ts);

                DataGridTextBoxColumn TextCol2 = new DataGridTextBoxColumn();
                TextCol2.MappingName = "dot_tt";
                TextCol2.HeaderText = lan.Change_language_MessageText("Đợt t.toán");
                TextCol2.Width = 70;
                TextCol2.Alignment = HorizontalAlignment.Left;
                ts.GridColumnStyles.Add(TextCol2);
                dgrQTDTCoQuan.TableStyles.Add(ts);

                DataGridTextBoxColumn TextCol3 = new DataGridTextBoxColumn();
                TextCol3.MappingName = "sohd";
                TextCol3.HeaderText = lan.Change_language_MessageText("Số phiếu thu");
                TextCol3.Width = 80;
                TextCol3.Alignment = HorizontalAlignment.Left;
                ts.GridColumnStyles.Add(TextCol3);
                dgrQTDTCoQuan.TableStyles.Add(ts);

                DataGridTextBoxColumn TextCol4 = new DataGridTextBoxColumn();
                TextCol4.MappingName = "hocphi";
                TextCol4.HeaderText = lan.Change_language_MessageText("Số tiền");
                TextCol4.Width = 80;
                TextCol4.Alignment = HorizontalAlignment.Left;
                ts.GridColumnStyles.Add(TextCol4);
                dgrQTDTCoQuan.TableStyles.Add(ts);

                DataGridTextBoxColumn TextCol5 = new DataGridTextBoxColumn();
                TextCol5.MappingName = "ngayhp";
                TextCol5.HeaderText = lan.Change_language_MessageText("Ngày T.Toán");
                TextCol5.Width = 80;
                TextCol5.Alignment = HorizontalAlignment.Left;
                ts.GridColumnStyles.Add(TextCol5);
                dgrQTDTCoQuan.TableStyles.Add(ts);

                DataGridTextBoxColumn TextCol6 = new DataGridTextBoxColumn();
                TextCol6.MappingName = "thang";
                TextCol6.HeaderText = lan.Change_language_MessageText("Thời gian học");
                TextCol6.Width = 40;
                TextCol6.Alignment = HorizontalAlignment.Left;
                ts.GridColumnStyles.Add(TextCol6);
                dgrQTDTCoQuan.TableStyles.Add(ts);

                DataGridTextBoxColumn TextCol7 = new DataGridTextBoxColumn();
                TextCol7.MappingName = "donvi";
                TextCol7.HeaderText = lan.Change_language_MessageText("Đơn vị");
                TextCol7.Width = 40;
                TextCol7.Alignment = HorizontalAlignment.Left;
                ts.GridColumnStyles.Add(TextCol7);
                dgrQTDTCoQuan.TableStyles.Add(ts);


                DataGridTextBoxColumn TextCol8 = new DataGridTextBoxColumn();
                TextCol8.MappingName = "tungay";
                TextCol8.HeaderText = lan.Change_language_MessageText("Từ ngày");
                TextCol8.Width = 80;
                TextCol8.Alignment = HorizontalAlignment.Left;
                ts.GridColumnStyles.Add(TextCol8);
                dgrQTDTCoQuan.TableStyles.Add(ts);

                DataGridTextBoxColumn TextCol9 = new DataGridTextBoxColumn();
                TextCol9.MappingName = "ghichu";
                TextCol9.HeaderText = lan.Change_language_MessageText("Ghi chú");
                TextCol9.Width = 120;
                TextCol9.Alignment = HorizontalAlignment.Left;
                ts.GridColumnStyles.Add(TextCol9);
                dgrQTDTCoQuan.TableStyles.Add(ts);

                DataGridTextBoxColumn TextCol10 = new DataGridTextBoxColumn();
                TextCol10.MappingName = "id";
                TextCol10.HeaderText = " ID";
                TextCol10.Width = 120;
                TextCol10.Alignment = HorizontalAlignment.Left;
                ts.GridColumnStyles.Add(TextCol10);
                dgrQTDTCoQuan.TableStyles.Add(ts);

                ts.DataGrid.DataSource = ds.Tables[0];
                CurrencyManager cm = (CurrencyManager)BindingContext[dgrQTDTCoQuan.DataSource, dgrQTDTCoQuan.DataMember];
                DataView dv = (DataView)cm.List;
                dv.AllowDelete = false;
                dv.AllowEdit = false;
                dv.AllowNew = false;
			}
			catch{}
		}	
			
		private void load_daotao()
		{
			try
			{
				string ma_nv=lblMasoNVCT.Text;		
				DataSet ds=new DataSet();
				ds=mDB.get_data("select * from  "+m_user+".hopdong where manv='"+ma_nv+"'");
				DataSet ds1=new DataSet();
                ds1 = mDB.get_data("select * from  "+m_user+".llnv where manv='" + ma_nv + "' "); //.f_dTsuallnv(ma_nv);
				DataRow []r=ds.Tables[0].Select("manv = '"+ma_nv+"'");
				DataRow []r1= ds1.Tables[0].Select("manv = '"+ma_nv+"'"); 
				int t=ds.Tables[0].Rows.Count;
				int t1=ds1.Tables[0].Rows.Count;

				if(ds1.Tables[0].Rows.Count>0)
				{
					cboHocVanDT.SelectedValue=r1[0]["mahv"].ToString();									
					cboChuyenMonDT.SelectedValue=r1[0]["nnghiep"].ToString();
					cboHocVanNN1.SelectedValue=r1[0]["mann"].ToString();
					cboHocVanNN2.SelectedValue=r1[0]["mann2"].ToString();
					cboTrinhDoNN1.SelectedValue=r1[0]["mann1"].ToString();
					cboTrinhDoNN2.SelectedValue=r1[0]["mann3"].ToString();
					cboTrinhDoDT.SelectedValue=r1[0]["td_nnghiep"].ToString().Trim();
					cboHe.SelectedValue=r1[0]["he_dt"].ToString();
					txtHe.Text=r1[0]["tg_dt"].ToString().Trim();					
					string _s = r1[0]["tdth"].ToString();
					if (_s.Trim() !="" )
					{
						cboTDViTinh.SelectedValue=(r1[0]["tdth"].ToString());
					}		
				
					string s2=r1[0]["mahocham"].ToString();
					if (s2.Trim() !="" )
					{						
						cboHocHam.SelectedValue=(r1[0]["mahocham"].ToString());
					}
				}
				
				if(ds1.Tables[0].Rows.Count>0)
				{					
					cboChuyenMonTD1.SelectedValue=(r1[0]["tdnn"].ToString());
					cboChuyenMonTD2.SelectedValue=(r1[0]["tdnn2"].ToString());
					cboHeTD1.SelectedValue=(r1[0]["tdnn1"].ToString());
					cboHeTD2.SelectedValue=(r1[0]["tdnn3"].ToString());
				}
				if(ds.Tables[0].Rows.Count>0)
				{
					txtQLNNDaHoc.Text=r[0]["namqlnn"].ToString();
					string s1=r[0]["tdqlnn"].ToString();
					if(s1.Trim() !="")
					{
						cboTDQLNN.SelectedValue=(r[0]["tdqlnn"].ToString());
					}
				}
			}
			catch(Exception ex)
			{
				MessageBox.Show(ex.StackTrace,AccessData.Msg);
			}
		}

        private void cboTDQLNN_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
                SendKeys.Send("{Tab}");
        }

        private void txtTN_DT_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
                SendKeys.Send("{Tab}");             
        }

        private void cboHocVanDT_Validated(object sender, EventArgs e)
        {
            if (cboHocVanDT.SelectedIndex != -1)
                upp_llnv_daotao();
        }

        private void cboChuyenMonDT_Validated(object sender, EventArgs e)
        {
            if (cboChuyenMonDT.SelectedIndex!=-1)
                upp_llnv_daotao();
        }

        private void cboTrinhDoDT_Validated(object sender, EventArgs e)
        {
            if (cboTrinhDoDT.SelectedIndex!=-1)
                upp_llnv_daotao();
        }

        private void cboHe_Validated(object sender, EventArgs e)
        {
            if (cboHe.SelectedIndex!=-1)
                upp_llnv_daotao();
        }

        private void cboHocHam_Validating(object sender, CancelEventArgs e)
        {
            if (cboHocHam.SelectedIndex!=-1)
                upp_llnv_daotao();
        }

        private void cboHocVanNN1_Validated(object sender, EventArgs e)
        {
            if (cboHocVanNN1.SelectedIndex!=-1)
                upp_llnv_daotao();
        }

        private void cboChuyenMonTD1_Validated(object sender, EventArgs e)
        {
            if (cboChuyenMonTD1.SelectedIndex!=-1)
                upp_llnv_daotao();
        }

        private void cboTrinhDoNN1_Validated(object sender, EventArgs e)
        {
            if (cboTrinhDoNN1.SelectedIndex!=-1)
                upp_llnv_daotao();
        }

        private void cboHeTD1_Validated(object sender, EventArgs e)
        {
            if (cboHeTD1.SelectedIndex!=-1)
                upp_llnv_daotao();
        }

        private void cboTDViTinh_Validated(object sender, EventArgs e)
        {
            if (cboTDViTinh.SelectedIndex!=-1)
                upp_llnv_daotao();
        }

        private void cboHocVanNN2_Validated(object sender, EventArgs e)
        {
            if (cboHocVanNN2.SelectedIndex!=-1)
                upp_llnv_daotao();
        }

        private void cboChuyenMonTD2_Validated(object sender, EventArgs e)
        {
            if (cboChuyenMonTD2.SelectedIndex!=-1)
                upp_llnv_daotao();
        }

        private void cboTrinhDoNN2_Validated(object sender, EventArgs e)
        {
            if (cboTrinhDoNN2.SelectedIndex!=-1)
                upp_llnv_daotao();
        }

        private void cboHeTD2_Validated(object sender, EventArgs e)
        {
            if (cboHeTD2.SelectedIndex!=-1)
                upp_llnv_daotao();
        }

        private void cboTDQLNN_Validated(object sender, EventArgs e)
        {
            if (cboTDQLNN.SelectedIndex!=-1)
                upp_llnv_daotao();
        }

        private void txtNTT_CQ_Validated(object sender, EventArgs e)
        {
            txtNTT_CQ.Text = txtNTT_CQ.Text.Trim();
            if (txtNTT_CQ.Text == "  /  /")
            {
                return;
            }
            if (!mDB.kiemtrangayhople(txtNTT_CQ.Text.Trim()))
			{
                txtNTT_CQ.Focus();
				return;
			}
        }

        private void txtTungay_Validated(object sender, EventArgs e)
        {
            txtTungay.Text = txtTungay.Text.Trim();

            if (txtTungay.Text == "  /  /")
            {
                return;
            }
            if (!mDB.kiemtrangayhople(txtTungay.Text.Trim()))
            {
                txtTungay.Focus();
                return;
            }
        }

        private void butEdit_Click(object sender, EventArgs e)
        {
            if (txt_tungay_dt.Text.Trim() != "/  /")
            {
                txt_tuthang.Enabled = false;
                txt_tunam.Enabled = false;
            }
            else
            {
                txt_tuthang.Enabled = true;
                txt_tunam.Enabled = true;
            }
            if (txt_denngay_dt.Text.Trim() != "/  /")
            {
                txt_denthang.Enabled = false;
                txt_dennam.Enabled = false;
            }
            else
            {
                txt_denthang.Enabled = true;
                txt_dennam.Enabled = true;
            }
            Ena_control(false);
            btnBoqua.Enabled = true;
            btnLuu.Enabled = true;
            btnKetthuc.Enabled = true;
            Ena_textbox(true);
            cbo_ndt_dt.Focus();
            btnThem.Enabled = false;
            flag = 1;
        }

        private void cbodonvi_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)                
                txt_tungay_dt.Focus();
        }

        private void txtDN_DT_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
                SendKeys.Send("{Tab}");
        }

        private void cbodonvicq_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
                txtTungay.Focus();                
        }

        private void butEdit_cq_Click(object sender, EventArgs e)
        {
            Ena_controlCQ(false);
            Ena_textboxCQ(true);
            btnThemCQ.Enabled = false;
            flag = 1;
        }

        private void frmDaoTaoSua_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Alt && e.KeyCode == Keys.T)
            {
                btnThem_Click(null, null);
            }
            if (e.Alt && e.KeyCode == Keys.S)
            {
                butEdit_Click(null, null);
            }
            if (e.Alt && e.KeyCode == Keys.L)
            {
                btnLuu_Click(null, null);
            }
            if (e.Alt && e.KeyCode == Keys.B)
            {
                btnBoqua_Click(null, null);
            }
            if (e.Alt && e.KeyCode == Keys.X)
            {
                btnxoathanhvien_Click(null, null);
            }
            if (e.Alt && e.KeyCode == Keys.H)
            {
                btnHuy_Click(null, null);
            }
            if (e.Alt && e.KeyCode == Keys.K)
            {
                btnKetthuc_Click(null, null);
            }
        }       

        private void txt_noidaotao_dt_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
                SendKeys.Send("{Tab}");
        }

        private void txt_ghichu_dt_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
                btnLuu.Focus();
        }

        private void txt_tunam_Validated(object sender, EventArgs e)
        {
            if (txt_tungay_dt.Text.Trim() == "/  /" && txt_tunam.Text == "")
            {
                MessageBox.Show(lan.Change_language_MessageText("Yêu cầu Nhập từ ngày quá trình đào tạo hoặc năm quá trình đào tạo"), AccessData.Msg, MessageBoxButtons.OK, MessageBoxIcon.Warning);
                txt_tungay_dt.Focus();
            }
        }

        private void txt_dennam_Validated(object sender, EventArgs e)
        {
            /*if (txt_denngay_dt.Text.Trim() == "/  /" && txt_dennam.Text == "")
            {
                MessageBox.Show(lan.Change_language_MessageText("Yêu cầu Nhập quá trình đào tạo đến ngày hoặc năm quá trình đào tạo"), AccessData.Msg, MessageBoxButtons.OK, MessageBoxIcon.Warning);
                txt_denngay_dt.Focus();
            }*/
        }

        private void txt_tunam_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
                SendKeys.Send("{Tab}");  
        }

        private void txt_dennam_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
                SendKeys.Send("{Tab}");  
        }

        private void txt_tg_dt_Validated(object sender, EventArgs e)
        {
            if (txt_tg_dt.Text == "")
                cbo_donvitg.Enabled = false;
            else
                cbo_donvitg.Enabled = true;
        }

        private void txt_tuthang_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
                SendKeys.Send("{Tab}");
        }

        private void txt_denthang_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
                SendKeys.Send("{Tab}");
        }

        private void txt_tuthang_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (!IsNumeric(e.KeyChar.ToString()))
                e.Handled = true;
            if (e.KeyChar == 8)
                e.Handled = false;
        }

        private void txt_tunam_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (!IsNumeric(e.KeyChar.ToString()))
                e.Handled = true;
            if (e.KeyChar == 8)
                e.Handled = false;
        }

        private void txt_denthang_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (!IsNumeric(e.KeyChar.ToString()))
                e.Handled = true;
            if (e.KeyChar == 8)
                e.Handled = false;
        }

        private void txt_dennam_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (!IsNumeric(e.KeyChar.ToString()))
                e.Handled = true;
            if (e.KeyChar == 8)
                e.Handled = false;
        }

        private void txt_tungay_dt_TextChanged(object sender, EventArgs e)
        {
            if (txt_tungay_dt.Text.Trim() != "/  /")
            {
                txt_tuthang.Enabled = false;
                txt_tunam.Enabled = false;
            }
            else
            {
                txt_tuthang.Enabled = true;
                txt_tunam.Enabled = true;
            }
        }

        private void txt_denngay_dt_TextChanged(object sender, EventArgs e)
        {
            if (txt_denngay_dt.Text.Trim() != "/  /")
            {
                txt_denthang.Enabled = false;
                txt_dennam.Enabled = false;
            }
            else
            {
                txt_denthang.Enabled = true;
                txt_dennam.Enabled = true;
            }
        }
	}
}
